proxy http requests to different port numbers?

lvic4594 nginx-forum at
Thu Oct 3 13:14:35 UTC 2019

The same thing happens if i have both http and https in the same server
block, which is the only one in config:

server {
        listen       80;
	listen	     443 ssl;
        server_name  _;
	ssl_certificate     myserver.crt;
    	ssl_certificate_key myserver.key;
        root         /usr/share/nginx/html;
        client_max_body_size 200M;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;
	location /http {
	    proxy_pass	http://myserver:9092;
	location /tls {
            proxy_pass  https://myserver:8444;

Posted at Nginx Forum:,285723,285776#msg-285776

More information about the nginx mailing list