试试这个,我没验证 location = /index.php { #to php-fpm } location / { try_files $uri $uri/ /index.php?s=$uri&$args; } location ~* ^/.*\.(php|php5)$ { deny all; }
试试这个,我没验证