Von: Joseph Morgan
[mailto:josephmmorgan@xxxxxxxxxxx]
Gesendet: Donnerstag, 26. März
2009 03:21
An: users@xxxxxxxxxxxxxxxx
Betreff: Mangled my
Virtual Hosts
I have somehow mangled my virtual hosts.. or so I
think. I have two web
sites http://www.ProSportsResumes.com, and
http://www.VideoFortWorth.com, among others hosted on the same machine.
If you visit http://www.VideoFortWorth.com, you'll see
"ProSportsResumes" in the title, but the content of both are correct.
My host machine is behind a router with port forwarding turned on. All
incoming traffic on port 80 is forwarded to this machine.
The "hostname" command returns "WEBHOST"
My hosts file has entries like:
127.0.0.1 localhost
127.0.0.1 www.VideoFortWorth.com
127.0.0.1 www.ProSportsResumes.com
My httpd.conf has this line as it should:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
And my httpd-vhosts.conf has:
NameVirtualHost 127.0.0.1:*
ServerAdmin admin@xxxxxxxxxxxxxxxxxxxx
DocumentRoot X:/webs/ProSportsResumes
ServerName www.ProSportsResumes.com
ServerAdmin admin@xxxxxxxxxxxxxxxxxx
DocumentRoot X:/webs/VideoFortWorth
ServerName www.VideoFortWorth.com
Any ideas are appreciated.
Joe Morgan
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
Hi Joe,
I´m not sure, but I mean you must enter another IP
for your NameVirtualHost.
So your Domain has the public IP .64.202.189.170. That’s
the router with port forwarding to your webserver in a non-public net (like
10.0.0.x / 192.168.0.y / ..)
If your webserver have the IP 10.0.0.5, for example, you
has to be entered this IP for NameVirtualHost.
Another idea is to catch all incoming requests on
this webserver like in this config:
..
<VirtualHost
*:80>
DocumentRoot (anyPath)
ServerName www.ProSportsResumes.com
ServerAdmin (anyMailAddy)
ErrorLog (anyPath)
CustomLog (anyPath)
</VirtualHost>
..
Hope one of these ideas
works,
Greats,
Christian Buczek