你知道是否有一个python等价于php的 virtual()
吗?
我的配置是python, django, mod_wsgi, apache
试图包括一个脚本,只有php的例子使用上述包括,也需要包括在所有网站的页面。
感谢LE:我包括一个。cgi脚本
我看到的唯一引用是
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_wsgi
输出后由mod_include
处理(或之前,如果这是您想要的)。