a2ensite example.com

Category: Web Servers & Proxies

a2ensite example.com

Enable an Apache site by symlinking its config

Creates the symlink that activates the site definition named example.com (or example.com.conf) from sites-available into sites-enabled. Apache picks up the change only after a reload or restart. Disable the site again with a2dissite example.com.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.