Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set up a webserver on my Mac so that I can access my folder through http://localhost:8085/test.html.

How do I set this up?

share|improve this question

This tutorial should have what you need. See "Solution to #2: Port based virtual hosts":

share|improve this answer

Just answered this at another question. If your goal is a one-off sharing, you might try the HTTP server built into the Python SimpleHTTPServer module for exposing a directory tree to the web.

share|improve this answer
Thanks. With this will I be able to access 'localhost' from my applications? – Egil Jul 6 '10 at 16:30
@Egil Yes, you can. You can even bind to, meaning the folder will be exposed on every interface you have. – Rnhmjoj Feb 17 '15 at 13:10

XAMPP is one of the most popular packages for localhost servers but the question is...what languages do you want this server to support? Because the .html files can be seen on browsers without any server...XAMPP on the other hand supports Perl and PHP.There are also other servers for different languages...good luck

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .