nginx代理php设置
2021-04-23 04:28
标签:pass php try_files efault 设置 param etc ams serve server { # server_name www.xxx.com; # Load configuration files for the default server block. location / { location ~ \.php$ { error_page 404 /404.html; error_page 500 502 503 504 /50x.html; nginx代理php设置 标签:pass php try_files efault 设置 param etc ams serve 原文地址:https://www.cnblogs.com/kiancyc/p/12240377.html
listen 80;
#listen [::]:80 default_server;
root /opt/www.xxx.com;
index index.php index.html;
include /etc/nginx/default.d/*.conf;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location = /40x.html {
}
location = /50x.html {
}
}
下一篇:HTML