On my webserver I have apache running on port 80, sending index.html, so upon visiting the page you get index.html from apache. I also want a backend API for the website that is proxied though CF, so looking at the ports that CF allows for, I chose port 2095 for this API. I wrote the API and bound it to that port, and upon visiting it on my IP, it works fine. The issue is when you visit it though the domain (domain.com:2095) it redirects to “domain.com” and pretends the port was never there.
Any ideas on how to fix this?