How to point 2 different IPS to different routes of the same dns

I have 2 applications that are deployed to different servers. How to configure them to point one to .com’ and the second to ‘.com/blog’ at the same time.

Welcome to the Cloudflare Community. :logodrop:

That’s not how DNS works. DNS translates a hostname to an IP address. The /blog portion of your URL is not involved your DNS. It is handled by the server after the DNS resolution has occurred.

If you just want example.com to take vistors to your main site and example.com/blog to direct them to your blog on another server, you can do that using Cloudflare with a redirect rule applied to a proxied hostname.

First, get your blog working at blog.example.com and then you can add a redirect rule in Cloudflare to send anyone who visits example.com/blog to https://blog.example.com.

I don’t see an exact example of this use in the following article, but this should help.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.