在路径 /www/server/nginx/conf/enable-php-74.conf
- location ~ [^/]\.php(/|$)
- {
- try_files $uri =404;
- fastcgi_pass unix:/tmp/php-cgi-74.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- include pathinfo.conf;
- }
复制代码
能否 改为?
- location ~ \.php(/|$)
- {
- try_files $uri =404;
- fastcgi_pass unix:/tmp/php-cgi-74.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- include pathinfo.conf;
- }
复制代码 不然在配置时,很容易发生冲突!
同时,新的配置,会不会影响 PHP或网站的安全性?
|
|