http://localhost does not work, http://127.0.0.1 works

Posted by dskanth on Server Fault See other posts from Server Fault or by dskanth
Published on 2011-02-05T11:21:14Z Indexed on 2011/02/05 15:27 UTC
Read the original article Hit count: 369

Filed under:
|
|
|
|

Iam running Zend with Apache and got to see a strange behaviour....

If i type http://127.0.0.1 in my browser url, it works fine, but after typing: http://localhost, i will get a file download window, saying file type as: application/x-httpd-php

And in my httpd.conf file, i have the following under VirtualHost *:80 definition:

ServerName localhost

DocumentRoot E:\zend\Apache2\htdocs\my_project\public

Directory E:\zend\Apache2\htdocs\my_project\public

Perhaps some configuration problem... can anyone guide me..

© Server Fault or respective owner

Related posts about Windows

Related posts about php