Super User is a question and answer site for computer enthusiasts and power users. 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

My apache-knowledge is minimal.

What I have:

One apache on
One apache on

Both use same pfSense-gateway and share same external IP. I would like point two different domains to this external IP. On, the 10.* server should answer and och the, the 172.* server should answer.

Can this be done?

share|improve this question
A couple linked questions involved, but I asked questions about a similar situation. – JoshP Oct 14 '12 at 20:47
up vote 1 down vote accepted

You need a front end web-server acting as a reverse proxy that forwards requests based on the HTTP Host header. The front end could be a separate server or one of the existing servers.

The Apache HTTPD server has a mod_proxy module that can be used for this.

A reverse proxy (or gateway), by contrast, appears to the client just like an ordinary web server. No special configuration on the client is necessary. The client makes ordinary requests for content in the name-space of the reverse proxy. The reverse proxy then decides where to send those requests, and returns the content as if it was itself the origin.

Google coughs up some random example

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .