1、thinkinfo不支持
https://www.cnblogs.com/cm920/p/12887179.html
2、部署好项目后,登录验证码未显示
/usr/local/php/etc/php.ini

cgi.fix_pathinfo=0 改为: cgi.fix_pathinfo=1
二、一台服务器上部署两个项目,相同域名,访问端口不同
1、/usr/local/nginx/conf/nginx.conf
server
{
listen 80 default_server reuseport;
#listen [::]:80 default_server ipv6only=on;
server_name _;
index index.php index.htm index.html;
root /home/wwwroot/gms;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
#include enable-php.conf;
include enable-php-pathinfo.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/access.log;
}
server
{
listen 8091 default_server reuseport;
#listen [::]:80 default_server ipv6only=on;
server_name _;
index index.php index.htm index.html;
root /home/wwwroot/gms_sz;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
#include enable-php.conf;
include enable-php-pathinfo.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/access_sz.log;
}
更改server中,listen 端口,root 地址改为修改后地址
重启nginx,访问地址后
报
访问网站出现500错误 HTTP ERROR 500
解决办法:修改fastcgi配置文件
/usr/local/nginx/conf/fastcgi.conf

重新启动后,网站正常运行
草根-920
浙公网安备 33010602011771号