代码语言:javascript复制
server{
listen 80;
server_name xx; #项目域名
location / {
root /usr/share/nginx/html;
index index.php index.html index.htm;
}
location ~ .php$ {
root /usr/share/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /data/html/demo1$fastcgi_script_name;
include fastcgi_params;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});