Ssistance Needed: Configuring Secure Access to Second Server on Port 8080

Before asking, did you search first? Press :mag: at the upper right to search.
Hello,

I’ve encountered an issue while configuring a second website on port 8080. I have one website, screener.market (IP: 45.148.28.67), running on port 80, which works fine. I intend to set up a new web server on the same IP (45.148.28.67) on port 8080. I’ve installed this second server using Docker and Nginx.

I can directly connect to the server at https://45.148.28.67:8080, and I receive a response from the site. However, I can’t connect via https://screener.market:8080 and receive the following error:

“This site can’t establish a secure connection. screener.market sent an invalid response. ERR_SSL_PROTOCOL_ERROR.”

I’m uncertain what additional configuration is needed to access the second server via the domain and port 8080.

8080 is an HTTP only port at Cloudflare, so you can’t use HTTPS.

Usually, you would create a subdomain for the second webserver and then configure the port via an Origin Rule in Cloudflare.

Docker run http web server, not https. I have not installed certificate on the server side. For first server the cloudflare adds certificate

Then you should fix that first and install a certuficate on the server.

You can get a free Cloudflare Origin Certificate.