Reverse proxy / proxy pass

Hopefully a simple question.

We have a subdomain that we’d like to rewrite all requests to another subdomain (not redirect).

We’d like requests to be rewritten as follows;

subdomain.example.com/login (IP 1.2.3.4) -> test-subdomain.example.com/login (IP 2.3.4.5)

With this in place the server at 2.3.4.5 (test-subdomain.example.com/login) will be serving files to requests coming from subdomain.example.com/login

Could someone provide guidance on how to do this? We are on an enterprise plan.

The best way I would believe is using Workers, but maybe even a CNAME if you don’t need to split traffic based on path, but I don’t exactly know if there are any other feature that on Enterprise can be enabled.

A similar example in Workers can be this:

PS: given you are on Enterprise, talk with your Solutions Engineer :slight_smile:

4 Likes

That’s great, thank you for the quick response and guidance.