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?

link|improve this question
feedback

3 Answers

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

http://suburbia.org.uk/blog/2007/11/13/120206.html

link|improve this answer
feedback

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.

link|improve this answer
Thanks. With this will I be able to access 'localhost' from my applications? – Egil Jul 6 '10 at 16:30
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.