Python相当于php的虚拟()

时间:2011-07-21 09:44:21

标签: php python virtual equivalent

你知道是否有一个python相当于php的virtual()

我的配置是python,djanogo,mod_wsgi,apache

尝试使用上面包含的只包含php示例的脚本包括在内,并且还需要包含在所有网站的页面中。

由于

LE:我包含一个.cgi脚本

1 个答案:

答案 0 :(得分:0)

我看到的唯一参考是

http://www.modpython.org/pipermail/mod_python/2004-January/014834.html

哪个州In theroy you can use the Apache 2.x chain handlers feature, where more than one content handler can process the request. I say in theroy because I've read about it, but never tried it =)

从PHP手册,virtual() is an Apache-specific function which is similar to <!--#include virtual...--> in mod_include. It performs an Apache sub-request . . . This function is only supported when PHP is installed as an Apache module.

以下是关于Apache Filters的信息的链接,这就是“链处理”的含义:

http://httpd.apache.org/docs/2.2/filter.html

mod_include输出后,mod_wsgi应该可以处理该文档(或之前,如果这是你想要的话)。