1. http://www.apachehaus.com/cgi-bin/download.plx 下載apachepython
2. http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi 下載python的插件web
whl改爲zip後綴加壓so文件,注意的是 mod_wsgi-4.4.23+ap24vc14-cp35-cp35m-win_amd64.zipapache
a. 這個wsgi插件版本是 4.4.23
b. apache版本是24,vc是14app
c. python版本是3.5.xide
d.64位系統ui
版本必定都要對得上,否則apache沒法啓動插件
apache的httpd.conf配置一下ip
# 跟着那堆 LoadModule 寫,不能寫在下面ci
LoadModule wsgi_module modules/mod_wsgi.soio
# 在最下面配置Django,這個就是VS2015的Django項目例子路徑
#指定myweb項目的wsgi.py配置文件路徑 WSGIScriptAlias / E:/MyWork/MyPython/AssetManagementProject/AssetManagementProject/AssetManagementProject/wsgi.py #指定項目路徑 WSGIPythonPath E:/MyWork/MyPython/AssetManagementProject/AssetManagementProject <Directory E:/MyWork/MyPython/AssetManagementProject/AssetManagementProject> <Files wsgi.py> Require all granted </Files> </Directory> Alias /static E:/MyWork/MyPython/AssetManagementProject/AssetManagementProject/app/static <Directory E:/MyWork/MyPython/AssetManagementProject/AssetManagementProject/app/static> AllowOverride None Options None Require all granted </Directory>