sites-enabled directory

The /etc/apache2/sites-enabled directory contains symlinks to the /etc/apache2/sites-available directory. When a configuration file in sites-available is symlinked, the site configured by it will be active once Apache is restarted.

As we’ve already mentioned, to make a site accessible, a link to its configuration file must be created in this directory. This can be done using the a2ensite command. To disable a web site, the a2dissite command is used. For example, here is how we would enable newWebsite.conf:

apache a2ensite command

Subscribe to our Newsletter

Like us on Facebook

top
Geek University 2018