Forum Moderators: phranque
I'm able to browse to www.mydomain.abc just fine from any box outside my network, but not from on the network that the server is located on. If I browse to 'localhost' or '192.168.x.x' (my server's lan ip) it works fine.
I want to be able to type in my domain name and have it appear locally. I know this is something simple... but I'm missing it, obviously.
#
Listen 80
ServerName www.mydomain.abc:80
ServerName localhost:80
<VirtualHost *:80>
ServerName www.mydomain.abc
ServerAlias mydomain.com
DocumentRoot /html/docs/mydomain.abc
</VirtualHost>
#
The router's port 80 is being forwarded, and I'm able to browse to 'localhost' or the local IP, but when I type in www.mydomain.abc my browser reports:
"The connection was refused when attempting to contain www.mydomain.abc"
You won't be able to use DNS because essentially, you'd be asking your network to make both an outgoing and incoming connection simultaneously for the same request.
Add a line like
192.168.0.13 yourdomain.com
to the hosts file. Under Win XP it's usually located in C:\WINDOWS\SYSTEM32\DRIVERS\etc
You'll need to restart your browsers for this to take effect.
Jim
Just food for thought.
~