Configure Route/Worker for proxy

What is the name of the domain?

What is the issue you’re encountering

I have domainhosted at Cloudflare. I want domain/marketplace and domain/marketplace/* to proxy to an external DNS instead of redirect.

What steps have you taken to resolve the issue?

I tried creating a Route but I am asked to map to a worker. Should I host the external app using workers or can we achieve the proxy using CF Workers/Routes?

If you have at least a Pro plan, you can use Snippets:

Otherwise, you can do the same with a Worker, but it will cost you per request.

Keep in mind that both options only work if the external site uses relative URLs.

If at all possible, I’d recommend to go with marketplace.example.com instead of using example.com/marketplace, it’ll save you a lot of trouble.

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