Friday, January 14, 2022

[FIXED] I'm not able to access localhost on my linux m/c running Apache/2.2.14 (Ubuntu)

Issue

Accessing http://localhost or http://127.0.0.1 gives me a 404 URL not found error. This is in spite of me having apache 2.2.14 running on my PC (the apache process is started). Any help in this regard will be appreciated. Thank you!


Solution

If you're getting a 404 not found it means that the server is running but can't find the document you're looking for.

If you look in your Apache config file you'll find a setting for "document root". Place a file called "index.html" in that directory.

This usually defaults to /var/www on Ubuntu.

For more info you can check the Ubuntu community site



Answered By - Andy

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.