mod_wsgi的,WSGI守护可见背后_both_ http和https
题
我已经配置使用SSL apache的虚拟主机和mod_wsgi的其工作罚款:
<虚拟主机127.0.0.1:443>
#[...]
SSLEngine on
#[...]
WSGIScriptAlias / /home/maciek/workspace/imid2py/wsgihandler.py
WSGIDaemonProcess web2py user=maciek group=www-data \
home=/home/maciek/workspace/imid2py/ \
processes=10 maximum-requests=500
<地点 “/”>
#[...]
WSGIProcessGroup web2py
地点>
虚拟主机>
然而,我需要允许不使用SSL通过HTTP特定的URL的连接。 所以基本上我想_the_same_ WSGI守护进程是在两个虚拟主机可见:一个使用SSL,一个没有。我想这是同样的守护,因为我在内存中使用一些常用的变量。一种方法是围绕可能(例如,将它们存储在分贝),但艰苦。
<虚拟主机127.0.0.1:80>
<Location "/welcome/default/handleRequest">
WSGIProcessGroup web2py #I want this to be the same daemon as above
</Location>
虚拟主机>
如何配置WSGI /阿帕奇这样做呢?这可能吗?
解决方案
这是通过在书的web2py的web2py文档所覆盖。去阅读这本书的章节。看到在链接:
不隶属于 StackOverflow