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

How can I point the DNS in order to have /blog and / in 2 different servers?

One of them is on PHPFog (PHP hosting) and the other on Heroku (Rails Hosting).



share|improve this question
up vote 3 down vote accepted

Essentially, you can't; that's not an issue for the DNS, because it only handles hostnames, not HTTP pathnames on a given host. Your choices include

  1. Host the main site on and blog on, in which case you can do it with the DNS - just publish the relevant A record for each zonefile entry.
  2. Host the blog on a disposable domain name, and use ReWrite rules to proxy to the dispoable blog path, rewriting any links on the way through.

1) would be much easier, if you're not wedded to

share|improve this answer
Darn you MadHatter! - This is the better answer @donald. – Mister IT Guru Mar 11 '11 at 11:49
I'm just worried with SEO. If I use I'll lose some SEO juice so I heard. – donald Mar 11 '11 at 11:56
Mister Guru: <LARGE GRIN> sorry! I'll try to be worse! Donald: SEO juice? – MadHatter Mar 11 '11 at 16:15

Use a subdomain instead: - many sites do it this way.

share|improve this answer

I don't think DNS is what you need to look into to make this happen. I think you'll need to have a redirect setup, if memory serves me right.

You configure this on your webserver.

share|improve this answer

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.