Default WebSite


What file is changed when you set up a default vistual host to be the default web site when you type in the ip address of the VPS or Server?

Also, where is the .conf file for Apache2 using Virtualmin? Is it in Y/etc/apache2/sites-enabled? or is there a master .conf file somewhere showing all virtual hosts?

Thank you!

Since Apache serves the alphabetically first vhost if it receives an unknown hostname, Virtualmin renames the config file of the virtual server you choose as default to /etc/apache2/sites-enabled/0-domainname.conf.

The master config file is /etc/apache2/apache2.conf, at least under Ubuntu/Debian. It might be different in other distros.

thanks for clarifying, so if I’d like to override or add a new value to the .conf file, I should do it in the .conf under /sites-enabled right?


Nope, the files in “sites-enabled” are just symlinks to the files in “sites-available”, where you should do any editing that is necessary.