Should I modify this file (/etc/apache2/sites-available/default-ssl.conf) while changing Apache "DocumentRoot directory"?

I'm wishing to change my Apache DocumentRoot directory from /var/www/html/ to /path/to/another/directory. I've modified these files, /etc/apache2/apache2.conf and /etc/apache2/sites-available/000-default.conf. May I have to modify /etc/apache2/sites-available/default-ssl.conf?

Without this question, I'm also wishing to know why this file is important? And why should I modify it (if I need to modify it)?

1 Answer

The two files .conf you find in default /etc/apache2/sites-available/ refers to hosts configurations.

For any host you add in your Apache installation you should edit a .conf file.

Once you edited or added a .conf file you must run sudo a2ensite [file.conf] and then sudo service apache reload in order to enable your new configuration.

default-ssl.conf refers to a host that use https/ssl encryption.

If you don't use Https hosts you don't need to edit this file.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like