Server Fault is a question and answer site for system and network administrators. 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

Possible Duplicate:
TOR: hide my site in clearweb‏

I'm trying to serve on localhost only but every time I find a way to do it, it always says to edit http.d I cannot find http.d. Can someone tell me a good way to setup apache to serve ONLY on localhost? Please include paths on the default Ubuntu install. Thank you very much.

share|improve this question

marked as duplicate by Michael Hampton, Jacob, Brent Pabst, Scott Pack, mdpc Jan 30 '13 at 4:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Open /etc/apache2/ports.conf

Change the "Listen" entry to look like this:


You will need to restart apache after that:

/etc/init.d/apache2 restart
share|improve this answer

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