django应用程序源文件中带有Wsgi模块的Apache更改不会立即受到影响,但它仅在Apache重新启动时反映更改
我的apache设置的配置是
<VirtualHost *:80>
ServerName pyspacex.com
ServerAlias pyspacex.com
CustomLog logs/pyspacex-access_log common
ErrorLog logs/pyspacex-error_log
Alias /static/ /home/mrll0081/mysite/spacex/static/
<Directory /home/mrll0081/mysite/spacex/static>
Require all granted
</Directory>
WSGIDaemonProcess pyspacex python-home=/home/mrll0081/pyenv python-path=/home/mrll0081/mysite
WSGIProcessGroup pyspacex
WSGIScriptAlias /spacex /home/mrll0081/mysite/mysite/wsgi.py
<Directory /home/mrll0081/mysite/mysite>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>
目前没有回答
相关问题 更多 >
编程相关推荐