ITPub博客

首页 > 应用开发 > IT综合 > apache mod_wsgi

apache mod_wsgi

原创 IT综合 作者:suzhouclark 时间:2015-04-28 14:39:32 0 删除 编辑
Apache 配置
1. 添加监听端口    Listen 5000
2. 添加虚拟机
#############################
#WSGI
############################



WSGIDaemonProcess uig user=web group=web threads=25
WSGIScriptAlias / /home/web/testvirtual/env1/uig/uig.wsgi
WSGIScriptReloading On
DocumentRoot /home/web/testvirtual/env1/uig



   WSGIProcessGroup uig
#   Order allow,deny
#   Allow from all
   Require all granted



=======================================================
uig.wsgi
=======================================================

activate_this = '/home/web/testvirtual/env1/bin/activate_this.py'
execfile(activate_this,dict(__file__=activate_this))

import sys

sys.path.insert(0,'/home/web/testvirtual/env1/uig')

from addons import app as application







来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9697/viewspace-1608817/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-03-26

  • 博文量
    124
  • 访问量
    335899