Support Request: Issue with Cloudflare Proxy and Multiple Ports

What is the name of the domain?

eu-app.scematics.xyz

What is the error number?

Cant be reached

What is the error message?

Site can’t be reached

What is the issue you’re encountering

When Cloudflare proxy is enabled, only port 8000 (mapped to 443) works. The other ports (7500 and 7509) do not respond.

What steps have you taken to resolve the issue?

When Cloudflare proxy is disabled, all ports work as expected.

What are the steps to reproduce the issue?

I am encountering an issue when using Cloudflare’s proxy for my domain eu-app.scematics.xyz. Below are the details:

NGINX Configuration:
I have multiple server blocks configured to handle different ports (7500, 7509, and 443) for my application using NGINX as a reverse proxy.

Port 443 maps to http://localhost:8000
Port 7509 maps to http://localhost:5080
Port 7500 maps to http://localhost:3001
Issue:

When Cloudflare proxy is enabled, only port 8000 (mapped to 443) works. The other ports (7500 and 7509) do not respond.
When Cloudflare proxy is disabled, all ports work as expected.
Screenshot and NGINX Configuration:
I have attached a screenshot and included the NGINX configuration file for your reference.

Objective:
I would like to understand if there is a way to allow multiple ports (443, 7500, 7509) to work seamlessly through Cloudflare while the proxy is enabled.

Please let me know if any changes are required in the NGINX configuration or Cloudflare settings to resolve this issue.

Thank you for your assistance.

Attachments:

Screenshot of the issue

Screenshot of the error

The Cloudflare proxy only works on these ports (unless using Cloudflare Spectrum)…

You can use an origin rule so port 443 on the edge is mapped to different ports on your origin, such as…

https://example.com → origin port 8000
https://sub1.example.com → origin port 5080
https://sub2.example.com → origin port 3001

See…
https://developers.cloudflare.com/rules/origin-rules/features/#destination-port

Cloudflare Spectrum will proxy any port, but is an add-on service that requires an Enterprise plan…
https://developers.cloudflare.com/spectrum/protocols-per-plan/

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