As shown in the figure, using 127.0.0.1 to access is a 500 error
But after modifying the hosts, it is normal to access through the domain name
127.0.0.1 shaomai.yii.so
How to deal with it?
Check the Nginx的错误日志:error.log,具体日志在什么地方根据系统、安装方式不同都不同,只有你自己知道了。CentOS下默认是在/var/log/nginx/catalog.
Nginx
error.log
CentOS
/var/log/nginx/
Just looking at this, I don’t know what the problem is. You can open the error log and look at the error log to locate the problem.
I didn’t see a clear error message through the error log. The author can ask on stackoverflow. If you have solved the problem, you can reply and let us all know what is wrong
Check the
Nginx
的错误日志:error.log
,具体日志在什么地方根据系统、安装方式不同都不同,只有你自己知道了。CentOS
下默认是在/var/log/nginx/
catalog.Just looking at this, I don’t know what the problem is. You can open the error log and look at the error log to locate the problem.
I didn’t see a clear error message through the error log. The author can ask on stackoverflow.
If you have solved the problem, you can reply and let us all know what is wrong