Default WebSite

4 posts / 0 new
Last post
#1 Wed, 11/28/2012 - 09:20
matimont

Default WebSite

Hi,

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!

Wed, 11/28/2012 - 10:08
Locutus

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.

Wed, 11/28/2012 - 10:20
matimont

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?

Regards.

Wed, 11/28/2012 - 10:25
Locutus

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

Topic locked