Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

1 Answer 1

Open /etc/apache2/ports.conf

Change the "Listen" entry to look like this:

Listen 127.0.0.1:80

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.