单php:
server
{
listen 80 ;
#listen [::]:80 default_server ipv6only=on;
server_name www.s13.cn;
index index.html index.htm index.php;
root /www/crm/FLY-CRM/Crm;
client_max_body_size 100m;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
#if (!-e $request_filename)
# {
# rewrite ^/(.*)$ /index.php?s=$1 last;
# }
#include enable-php.conf;
location / {
try_files $uri $uri/ /index.php?s=$uri&$args;
}
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
try_files $uri =404;
fastcgi_pass