nginx conf的$request_filename变量到底指的是什么?

比如说
example.com/index.php
example.com/index.php?a=3
example.com/index.php/a/b/c

example.com/test.php
example.com/test.php?a=3
example.com/test.php/a/b/c

这些url的request_filename到底是多少?

阅读 21.7k
1 个回答
$request_filename 就是请求资源的路径啦~~
例如你这里,应该对应的是 root下的 index.php 和 test.php
当然还有看前面有没有伪静态规则什么的。。。
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题