nginx proxy pass subpaths not redirected

后端 未结 3 619
迷失自我
迷失自我 2020-12-13 09:36

I have the following nginx config:

    location /mail {
           rewrite           ^/mail/(.*) /$1 break;
           proxy_pass https://roundcube-host;
            


        
3条回答
  •  醉酒成梦
    2020-12-13 10:03

    If I change it to the below with the extra / it matches everything beyond mail as well as /mail directly.

    location /mail/ {
    
    }
    

    NGINX 1.14.2

提交回复
热议问题