Submitted by izoox on Tue, 11/10/2009 - 12:13
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
Submitted by andreychek on Tue, 11/10/2009 - 12:53 Comment #1
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?
Submitted by izoox on Tue, 11/10/2009 - 13:20 Comment #2
That was it! Learn new things everyday :)
Submitted by JamieCameron on Tue, 11/10/2009 - 13:25 Comment #3
Cool .. looks like we can call this fixed then.
Submitted by izoox on Tue, 11/10/2009 - 13:29 Comment #4
Yep.
Submitted by izoox on Wed, 11/18/2009 - 04:26 Comment #5
Submitted by everisk on Tue, 12/08/2009 - 08:10 Comment #6
Does this option available on GPL version?
Submitted by andreychek on Tue, 12/08/2009 - 08:46 Comment #7
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/).