Getting an error when I visit http://localhost

You can access “localhost” just fine.

The “404: file not found” error indicates the server can’t find the requested file once you’ve connected to localhost.

ADDENDUM:

Maybe try to create a regular html file called test.html in one of your vhosts that is not working. Then try to visit that url. That should give you some clue as to what may be the problem. – Gohn67

This is good advice. Try it. Specifically:

1) Create the following five files:

  • C:/xampp/htdocs/dummy-host.localhost/test.html
  • C:/xampp/htdocs/my/test.html
  • C:/xampp/htdocs/launcher/public_html/test.html
  • C:/xampp/htdocs/website/httpdocs/test.html
  • C:/xampp/htdocs/my/test.html

2) Make sure each of these directories exist, and each has a “test.html” with the words “TESTING 1…2…3” in it

3) Try each of these five URLs in your browser:

4) Report back the exact error you get from each browser URL

Leave a Comment