Trying to redirect traffics to 1 specific port on my server

Hi, I have domain and i want to make a sub domain like bot.example.com to redirect all configs to somthing like 111.111.111.111:5000 but i also have another dns record like test.example.com which is pointing at the same server but all traffics i want to be like before i searched a lot but i just found rules setting but did’nt help me when i create a new rule i don’t know how to assign it with my dns record
Tnx in advance
sry for bad english

Ports are not handled by DNS.

You need to set the DNS record for each subdomain you want to use in your Cloudflare DNS, then you can use origin rules to point at the port that is used by your origin server for all subdomains, or have different ports set for different subdomains if that is what you need…

If in doubt, share screenshots of your DNS and your origin rules.

2 Likes

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