[Mac] Localhost at port 80 says It Works!


Localhost says it works

If you try to access http://localhost/index.html at default port 80 and it says it works! and you are wondering what service is running this index.html page then you are at the right place,

This is a page that you can locate at location /Library/Webserver/Documents/index.html.en which is associated with Apache HTTP Server.

% cat /Library/WebServer/Documents/index.html.en
<html><body><h1>It works!</h1></body></html> 

You can stop Apache Server by running the command sudo apachectl stop

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org



















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap