Apache Default Site

If you type in the ip, it seems that the first vhost in the conf is served. Or if a url isn't matche, it defaults to the first vhost. Is there a way to get it to not do that? And only serve if the url matches? My clients are complaining that this is very bad for SEO.

I had an .htaccess entry to 301 redirect to the domain anyhow, but they think it is contributing to their site's poor performance in the search engines.

Apache docs seem to tell you to create a that has no pages, but I can't find where do to that in virtualmin.

Status: 
Closed (fixed)

Comments

Correct, Apache defaults to the first virtualhost it sees on a particular IP.

Virtualmin provides a mechanism to set what the default virtualhost should be -- to set the default virtualhost, go into Server Configuration -> Website Options, and set "Default website for IP address".

Will that do what you're after?

That was it! Learn new things everyday :)

Cool .. looks like we can call this fixed then.

Does this option available on GPL version?

Sorry, that option is only in Pro.

In the GPL version, you can manually update that by editing the Apache config files (either in /etc/httpd/conf/httpd.conf, or /etc/apache2/sites-enabled/).