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
,具體日志在什么地方根據系統(tǒng)、安裝方式不同都不同,只有你自己知道了。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