-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ae8aa78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为啥是ngx.var.uri?而不是ngx.var.request_uri?如果nginx配置了rewrite,就获取不到真实的uri了,而是重定向之前的uri。
ae8aa78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,request_uri更合适些,这个大家可以随意diy。我当时是有种担心有人不了解情况配置不严格造成一些其他问题就直接写了uri。感谢提醒