[ms4w-users] 127.0.0.1 instead of localhost

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Mar 25 16:58:09 EST 2009


Phalguni Pal wrote:
> Dear friends,
> I have vista and I installed MS4W in my machine.When I test apache with 
> http://127.0.0.1/  (port 80), its working well. But it's not working 
> with http://localhost/. Could you any one have the idea about it?  (I 
> also installed glashfish long ago but in another port. )
> Thanking you.
> Regards,
> Phalguni

Hmm.  You could try these ideas:

- check your 'hosts' file (/WINDOWS/system32/drivers/etc/hosts i think) 
for the following line:

  127.0.0.1        localhost

- edit /ms4w/Apache/conf/httpd.conf and change the value of "ServerName" 
to localhost (and restart Apache)

Those are just ideas...maybe someone else has the definitive answer.

-jeff




-- 
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/




More information about the ms4w-users mailing list