1

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).

Regards.

Thanks

donald
  • 453
  • 1
  • 6
  • 17

3 Answers3

3

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 example.com and blog on blog.example.com, 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 example.com/blog to the dispoable blog path, rewriting any links on the way through.

1) would be much easier, if you're not wedded to example.com/blog.

MadHatter
  • 78,442
  • 20
  • 178
  • 229
1

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

sapguy
  • 149
  • 3
0

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.

Mister IT Guru
  • 1,158
  • 3
  • 15
  • 35