server {
listen 80
;
server_name XXXX.funova.net XXX.funova.
com;
root /opt/
newgm;
index index.
php;
location /
{
try_files $uri /index.php
$uri;
}
location ~ .+\.php($|/
) {
fastcgi_pass 127.0.0.1:9000
;
fastcgi_index index.
php;
fastcgi_split_path_info ^(.+\.php)(/.*
)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi.
conf;
}
access_log /logs/nginx/newgm.
access main;
error_log /logs/nginx/newgm.
error;
location ~ /.svn/
{
deny all;
}
}
转载于:https://www.cnblogs.com/hgj123/p/4680717.html
转载请注明原文地址: https://mac.8miu.com/read-10327.html