Home >Backend Development >PHP Tutorial >nginx conf的$request_filename变量到底指的是什么?

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

WBOY
WBOYOriginal
2016-06-06 20:25:324945browse

比如说
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到底是多少?

回复内容:

比如说
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到底是多少?

<code>$request_filename 就是请求资源的路径啦~~
例如你这里,应该对应的是 root下的 index.php 和 test.php
当然还有看前面有没有伪静态规则什么的。。。</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn