在设置nginx的反向代理的时候,会出现这样一个错误。
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
If you are the system administrator of this resource then you should check the error log for details.
Faithfully yours, nginx.
这里是指的nginx代理的网页出现错误,但是我代理的是tomcat的8080端口,而tomcat是正常运行可以访问的。
这里需要关闭selinux,进入配置文件。
vim /etc/selinux/config
修改SELINUX为disabled
#SELINUX=enforcing
SELINUX=disabled
然后重启reboot