Page 1 of 1

404 trying to access localhost htdocs

PostPosted: 10. June 2013 13:34
by BruceChittenden
I just did an install of xampp 1.8.1 (all defaults), I started apache (works fine), but I cannot access htdocs/index.html. I get the 404 error. I have read all the forms and I have not seen anything related to this issue. Can someone please help me. Thanks in advance. Bruce

Re: 404 trying to access localhost htdocs

PostPosted: 10. June 2013 15:05
by Altrea
What is the contents of your browsers address by at the time you are getting this error?

Re: 404 trying to access localhost htdocs

PostPosted: 10. June 2013 16:10
by BruceChittenden
http://localhost/index.html/

Re: 404 trying to access localhost htdocs

PostPosted: 10. June 2013 18:33
by BruceChittenden
Some additional data. I can access this file with apache by using the address 127.0.0.1/index.html Does that help with the problem of localhost?

Re: 404 trying to access localhost htdocs

PostPosted: 19. June 2013 02:29
by CraftyMc
i'm pretty sure it's because you haven't forwarded ports 80 and 443. either this or you have changed Apache's default port and not forwarded it.

Re: 404 trying to access localhost htdocs

PostPosted: 19. June 2013 02:43
by hackattack142
Hello,

Ports do not need to be forwarded on localhost/127.0.0.1 as the connection never leaves your system.

If you can access via 127.0.0.1 and not localhost, there might be an issue with your HOSTS file (C:\Windows\System32\drivers\etc\hosts).

Make sure the following line exists in that file
Code: Select all
   127.0.0.1       localhost
and does not have a '#' in front of it.