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

there is a blog hosted on one machine (apache) (currently at and we'd like to move it to dns for is pointed at an haproxy machine load balancing a few nginx app servers. the machine hosting the blog is not behind that load balancer.

considering i have complete control over the configuration of everything, whats the most straightforward way to get this to submit to my will and have the blog served from

share|improve this question
You can not achieve this without sending the traffic to your load balancer because the domain is pointing to your load balancer. If you send the traffic to your nginx load balancer then you can easly rewrite the /blog url. – Hex Nov 1 '12 at 22:43

There are few possible ways to achieve this. The best one would be to setup a reverse proxy on HAProxy and use acl to divert /blog traffic to the backend blog server.

Perhaps, have a look at this example setup

You may not need to change the ports as you already mentioned that the blog is hosted on a separate server.

share|improve this answer

Your Answer


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