版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/eddy23513/article/details/82946023
1、添加server
server {
listen 8001;
server_name localhost;
root /home/ebayerp;
location / {
index index.html index.htm index.php;
}
location ~ \.php$ {
# root "/home/ebayerp";
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
access_log /home/wwwlogs/ebayerp-access.log;
}
重启nginx服务,效果如下
如果访问不了,查看
设置关闭:
即可访问。