Setup different behaviors for different folders

I have a website, let’s call it www.example.com. I am new to cloudflare, and would like to achieve a certain configuration like the one I currently have with my old school Apache reverse proxy. I would like to:

  • have a https://www.example.com/blog proxied to a wordpress website I’m hosting on Azure
  • the rest of the website (https://www.example.com/*) pointing to an angular application that would be hosted as Cloudflare pages

If it weren’t for the blog, I would just create a “Pages” application with a custom domain. But how would I go about proxying the /blog folder?

Thank you in advance for your help.

DNS record override is available on Enterprise plans.

Other than that, you could use a worker to display different sites based on the path, see here::

But I’d just put the blog on a different subdomain like blog.example.com and then redirect www.example.com/blog to the blog subdomain.

2 Likes

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