Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

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

share|improve this answer
add comment

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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