[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



Have Questions? Post them here!
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.