Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't access local host anymore

Status
Not open for further replies.

ladyMa

Technical User
Apr 22, 2003
5
CL
averythng was just going fine with my webpages I use w2k, php4 apache 1.3.26, but ever since one of the computers on our LAN got internet access and ackts as gateway I cannot access my webpages via localhost or my computer name anymore.

the only way is using the local IP asinged to me by the gateway which changes all the time,

there has to be a better way, does anybody know the answer?
 
You might want to change ServerName to localhost and have it 'Listen' for ALL addresses.
 
would you mind to specify that a little more? I have it set to localhost, do you have to list all IP it listens to?

something like this:

Listen 192.168.0.2
Listen 192.168.0.3
Listen 192.168.0.4

or is there a way to say ALL?
 
No - you can use * or comment the Listen directive out and and use Bind *. This will bind apache to all addresses on all ports but will only answer requests for whatever you have assigned to 'ServerName'.
 
neither listen nor bind does the trick, won't work unless I set the ServerName to my current IP

is there anything else I can do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top