配置文件路径
/etc/nginx/sites-enable/default
这个文件默认有一份,可以备份一份,把这个文件改一下
代码语言:javascript复制server{
listen 80;
server_name *.qmwjj.cc; #绑定域名
root /t_web/t_site/page;
index index.php index.html index.htm;
location ~ .php$ {
root /t_web/t_site/page;[这句加不加都可以]
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /t_web/t_site/page$fastcgi_script_name;
include fastcgi_params;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});