Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 want to setup my apache2 to do the following.

Listen for connections on and answer to any host

Listen to connections on and only answer to localhost

Is this possible?

share|improve this question

migrated from Feb 18 '10 at 1:14

This question came from our site for computer enthusiasts and power users.

up vote 1 down vote accepted

Sure, don't you edit your httpd.conf file and just add

Order allow,deny
Allow from all

in the virtualhost responsible for and

Order allow,deny
Allow from

in the one responsible for

Or am I missing something?

share|improve this answer
I'll give this a shot later tonight, thanks :) – macek Feb 18 '10 at 15:37
I take it it didn't work? – brice Feb 21 '10 at 15:37

Your Answer


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.