我无法在RHEL中使用Apache和mod_wsgi部署Django-Python应用程序。
以下是我的配置:
Alias /static /home/appuser/xxxweb/yyydep/app/static
<Directory /home/appuser/xxxweb/yyydep/app>
Require all granted
</Directory>
<Directory /home/appuser/xxxweb/yyydep/app/management>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess management python-path=/home/appuser/xxxweb/yyydep python-home=/home/appuser/xxxweb/yyydep/disneyenv
WSGIProcessGroup management
WSGIScriptAlias / /home/appuser/xxxweb/yyydep/app/management/wsgi.py
重新启动下面的apache服务器后是已记录的错误。
安全更新检查失败:无法连接到https://securitycheck.phusionpassenger.com:443/v1/check.json的服务器(如果此错误仍然存在,请检查您的连接安全性或尝试升级乘客)(下次检查24小时) ImportError:没有名为site
的模块他们中的任何人都可以帮我解决这个问题吗?
由于
答案 0 :(得分:0)
首先在shell中尝试这些命令,看看会发生什么:
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload