HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Virtual hosts (http://www.howtoforge.com/forums/showthread.php?t=41652)

Toucan 8th December 2009 20:27

Virtual hosts
 
I've been having a little trouble setting up virtual hosts in apache2. The server works and is visible from the world Through the router using port forwarding.

I attempted to use webmin to set up two virtual hosts in addition to the default host. I've used to spare domain names I have registered and used web forwarding to point them to the static ip address of the router. This works but both show the default doc root page not their own supposed doc root pages.

I presemed they would use their client side headers to be recognised by apache and get to the right virtual host.

Is this likely to be a problem with just using web forwarding or is the virtual host not setup properly?

David

topdog 9th December 2009 08:51

That is a problem with your apache configuration, name based virtual hosting works by using the Host: header in the request not the ip address.

Toucan 15th December 2009 01:15

now my name servers are working it all seems in order. thanks


All times are GMT +2. The time now is 05:10.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.