Welcome! Log In Create A New Profile

Advanced

how to enable ssl to another port?

Posted by nginnn 
how to enable ssl to another port?
January 16, 2020 09:22AM
Hi team,
I have a certain use case that I hope you can help me.

I would like nginx to listen on multiple ssl ports on the same machine.
I have configured a server block in the nginx.conf configuration file by mentioning this:

listen 8443 ssl;

when I want to access the application by typing https://localhost:8443, I get the ERR_TUNNEL_CONNECTION_FAILED error

in few words, how to run nginx SSL on non-standard ports?

Thanks.
Re: how to enable ssl to another port?
January 24, 2020 08:13AM
it seems that it is not possible to have multiple https ports in the same server using the same service. That is true?
Re: how to enable ssl to another port?
January 27, 2020 01:15PM
Based on my understanding, nginx is listening to already running services on the server. For example:

If you have a apache server and nginx server on the same machine,
apache server is your backend web server and
nginx is your front end

then you can start apache vhosts on different ports and nginx will route the 443 or 80 traffic to the appropriate apache vhosts based on server_name and proxy_pass configuration to different apache virtual SSL ports.

Please correct me if I am wrong.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready