|
LoadFile "d:/programs/python/python36.dll"LoadModule wsgi_module "d:/programs/python/lib/site-packages/mod_wsgi/server/mod_wsgi.cp36-win_amd64.pyd"WSGIPythonHome "d:/programs/python"Define SRVROOT "c:/Apache24"ServerName 【IP】:80Include conf/extra/httpd-vhosts.conf(取消注释)<VirtualHost *:80> ServerName "192.168.70.111" DocumentRoot "${SRVROOT}/htdocs/MySite" ErrorLog "logs/project-error.log" CustomLog "logs/project-access.log" common</VirtualHost>Alias /media/ "${SRVROOT}/htdocs/MySite/media/"<Directory "${SRVROOT}/htdocs/MySite/media/"> Require all granted</Directory>Alias /static/ "${SRVROOT}/htdocs/MySite/static/"<Directory "${SRVROOT}/htdocs/MySite/static/"> Require all granted</Directory>WSGIScriptAlias / "${SRVROOT}/htdocs/MySite/project/wsgi.py"<Directory "${SRVROOT}/htdocs/MySite/project/"> <Files wsgi.py> Require all granted </Files></Directory>11.启动c:\Apache24\bin\ApacheMonitor.exe
总结
以上所述是小编给大家介绍的Django上线部署之Apache的方法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对Vecloud网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢! |
|