Django上线部署之Apache的方法

[复制链接]

1275

主题

1275

帖子

1013

积分

金牌会员

Rank: 6Rank: 6

积分
1013
分享到:
发表于 2022-3-21 17:49:34 | 显示全部楼层 |阅读模式
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网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

使用高级回帖 (可批量传图、插入视频等)快速回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则   Ctrl + Enter 快速发布  

发帖时请遵守我国法律,网站会将有关你发帖内容、时间以及发帖IP地址等记录保留,只要接到合法请求,即会将信息提供给有关政府机构。
快速回复 返回顶部 返回列表