Change Port with Workers

Hello trying to deploy a simple work that changes the origin port. the need for this is so all my field workers can still use the old hyperlink to our app.

So they have https://x.domian.com:9093 I need to rewrite it to just https://x.domain.com

right now the site is working on 443 and 9093 as i don’t have DNS proxy turned on.

I found the sample in the documents

however, I can’t seem to figure out where it needs to be placed in the script

Workers are only going to listen on ports Cloudflare uses:

shoot, I knew that page rules would listen only on known ports, in my reading I thought that workers were the way around that.

1 Like