proxy http requests to different port numbers?

lvic4594 nginx-forum at
Tue Oct 1 14:17:36 UTC 2019

Works with http but not with https: I tried to add second proxy_pass for

server {
        listen       443 ssl;
        server_name  _;
        ssl_certificate     my.crt;
        ssl_certificate_key my.key;
        root         /usr/share/nginx/html;
       include /etc/nginx/default.d/*.conf;

        location /rest2/ {

For https I have "resource not found /usr/share/nginx/html/rest2/" e.g.
nginx is not trying to proxy https request....

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

More information about the nginx mailing list