Internet Explorer cannot display the webpage when I link to http://localhost

Hi all,

Im so wondering why The Internet Explorer Cannot Display The Webpage when I go to the http: // localhost

Before this its can but when I want to use today, the above problem happened.

I’m using XAMPP on Vista.

I already install and uninstall so many times and also try using another service -WAMP but the result is still same…

The service is run properly but I cannot run the http:// localhost…

Pleas help me out…and im really appreciated.

Thank you in advance

Does it load if you request http://127.0.0.1/ ??

g81,

Do you have your files in WAMP’s htdocs directory (and no VirtualHost defined/hosts file updated to allow another location for your files)?

Regards,

DK

Thank you very much Mr.Mittineague and Mr.dklynn…:slight_smile:

This morning i tried to use http: //127.0.0.1/ and its solved my problem…hehe

But may I know why i cannot use http: //localhost

Thank you in advance

g81,

If you have a space in http://localhost then it won’t work - but that’s likely necessary by your post count.

Is the line in your httpd.conf file commented out?

ServerName localhost

In httpd-vhosts.conf?

NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot {path to htdocs}
    ServerName localhost
    ServerAlias www.localhost
[COLOR="Gray"]    ErrorLog "logs/error.log"
    CustomLog "logs/access.log" common
[/COLOR]</VirtualHost>

Regards,

DK