proxy http requests to different port numbers?

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


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

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/ {
            proxy_pass  https://myserver.com:8444/;

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: https://forum.nginx.org/read.php?2,285723,285768#msg-285768



More information about the nginx mailing list