location ~ .php$ {
root /Users/web/Documents/php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
我上面配置的根目录是 /Users/web/Documents/php
但是我在该目录新建1.php,重启了nginx 服务,找不到1.php ?
怎么回事??
location ~ \.php$