In house hosted site works for the world, but not me?

The Spyder

2[H]4U
Joined
Jun 18, 2002
Messages
2,628
I have a XAMPP server here at home hosting ~3 sites. The first site works fine. I can access it from my workstation going to www.mypersonaldomain.com. The second site I can only access via the IP address/e107 (which is the httpd docs folder store). The rest of the world can go to www.mysecondsite.com and it works fine...What would be causing this?
I have checked my httpd files, config, hosts files, ect.
 
if they are both running on the same IP address and you're using virutal hosting? In which case it's a matter of the correct header information not being sent to the webserver when you connect. You just need to add a couple entries to your hosts file to support the internal IP address of your server.
 
its very simple-

127.0.0.1 localhost
127.0.0.1 mypersonalsite.com
127.0.0.1 myfriendssite.com
 
host file should have only 1 entry for an ip address, it should read like this:

127.0.0.1 localhost mypersonalsite.com myfriendssite.com

Usually I'd suggest putting your names on your specific interface address though like:

127.0.0.1 localhost
10.10.10.10 mypersonalsite.com myfriendssite.com

If you are using named virtual hosting it will go to the first site in the configuration if no name is given (which was your case because your host file was wrong)

like this:

<VirtualHost *>
ServerName myserver.com
</VirtualHost>

<VirtualHost *>
ServerName yourserver.com
</VirtualHost>

it will go to the first one
 
Last edited:
Back
Top