Flask + mod_wsgi + Apache on Windows 部署成功
2016-12-18 00:00
447 查看
废话不多说,直接开始 。
背景:身为QA人员 一直想把工作一系列的方便测试的高效的方法与脚本分享给其余的QA人员,但是无奈与水平参差不齐,为了更好的服务与QA人员 ,最近在写一个QA管理
系统,使用的是 flask ,但是由于环境的限制不能部署到Linux 系统 (主要是懒不想搞环境) ,决定在window上进行部署 。
方法 : 百度 搜索到此文章 ,http://blog.csdn.net/firefox1/article/details/46438769 。(方法主要来源此)
版本:win 64 , Python 2.7 64 , mod_wsgi 64 , Apache 64
工具:Python + flask + mod_wsgi + Apache
工具下载路径 (如果是64位 ) : 只提供 mod_wsgi + Apache (http://pan.baidu.com/s/1gePLHJX) (非64位的,参考 步骤方法中的 链接)
参考这个 文章 主要遇到的问题 : http://blog.csdn.net/firefox1/article/details/46438769
You don't have permission to access /flasktest/hello on this server.You don't have permission to access /flasktest/hello on this server.
修改方法 :
1. 进入 Apache 的 conf/httpd.conf 配置文件 修改文件访问权限:
修改为:
对于原文章中的站点 virtualhost 配置 最好不要在 httpd.conf 中配置 ,Apache 有 httpd-vhosts.conf 配置文件,
具体配置方法 :
Copy 到 conf/extra/httpd-vhosts.conf 并且 在把 httpd.conf 中如下配置的注释去掉:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
背景:身为QA人员 一直想把工作一系列的方便测试的高效的方法与脚本分享给其余的QA人员,但是无奈与水平参差不齐,为了更好的服务与QA人员 ,最近在写一个QA管理
系统,使用的是 flask ,但是由于环境的限制不能部署到Linux 系统 (主要是懒不想搞环境) ,决定在window上进行部署 。
方法 : 百度 搜索到此文章 ,http://blog.csdn.net/firefox1/article/details/46438769 。(方法主要来源此)
版本:win 64 , Python 2.7 64 , mod_wsgi 64 , Apache 64
工具:Python + flask + mod_wsgi + Apache
工具下载路径 (如果是64位 ) : 只提供 mod_wsgi + Apache (http://pan.baidu.com/s/1gePLHJX) (非64位的,参考 步骤方法中的 链接)
参考这个 文章 主要遇到的问题 : http://blog.csdn.net/firefox1/article/details/46438769
You don't have permission to access /flasktest/hello on this server.You don't have permission to access /flasktest/hello on this server.
修改方法 :
1. 进入 Apache 的 conf/httpd.conf 配置文件 修改文件访问权限:
<Directory /> AllowOverride none Require all denied </Directory>
修改为:
<Directory /> #AllowOverride none #Require all denied </Directory>
对于原文章中的站点 virtualhost 配置 最好不要在 httpd.conf 中配置 ,Apache 有 httpd-vhosts.conf 配置文件,
具体配置方法 :
<VirtualHost *:80 > ServerAdmin example@company.com DocumentRoot D:\work\QA <Directory "D:\work\QA"> Order allow,deny Allow from all </Directory> WSGIScriptAlias /qa D:\work\QA\QA.wsgi </VirtualHost>
Copy 到 conf/extra/httpd-vhosts.conf 并且 在把 httpd.conf 中如下配置的注释去掉:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
相关文章推荐
- Flask + mod_wsgi + Apache on Windows 部署成功(随时接受提问)
- Flask + mod_wsgi + Apache on Windows 部署成功(随时接受提问)
- Apache+mod_wsgi+flask 在Windows下成功部署!
- 采用Apache+mod_wsgi在windows下搭建Flask项目(本地部署Flask的生产环境)
- windows + Apache + mod_wsgi 部署发布Django项目
- windows环境下部署django mod_wsgi apache
- Apache+mod_wsgi+Flask部署文档--ubuntu
- 【Django】 Windows下使用Apache+mod_wsgi部署Django
- 终于搞定flask+win+apache+mod_wsgi+virtualenv的部署发布!!
- flask+mod-wsgi+apache在WINDOWS下的部署
- python(flask) + mod_wsgi + apache windows下环境搭建
- Windows环境下使用Apache+mod_wsgi部署webpy
- windows64位下用apache2.4.29部署django1.11.7项目并使在局域网内可访问(mod_wsgi.so可下载)--超详细
- 最新版windows 2012R2、Apache24、mod_wsgi、Django1.9、python3.4项目部署(生产环境)
- Apache + Flask + mod_wsgi部署
- Windows环境下使用Apache+mod_wsgi部署webpy
- Linux下安装Apache并以mod_wsgi方式部署django站点
- Apache mod_wsgi部署Django项目
- Webpy + Apache with mod_wsgi on Ubuntu http://webpy.org/cookbook/mod_wsgi-apache-ubuntu
- Linux下安装Apache并以mod_wsgi方式部署django站点