Nginx rewrite rule with proxy pass

后端 未结 2 1047
遇见更好的自我
遇见更好的自我 2020-12-24 12:59

I\'m trying to implement nginx rewrite rules for the following situation

Request:

http://192.168.64.76/Shep.ElicenseWeb/Public/OutputDocuments.ashx?u         


        
2条回答
  •  暖寄归人
    2020-12-24 13:55

    Your rewrite statement is wrong.

    The $1 on the right refers to a group (indicated by paratheses) in the matching section.

    Try:

    rewrite  ^/Shep.ElicenseWeb/(.*)  /$1 break;
    

提交回复
热议问题