3

你知道是否有一个相当于 php 的 pythonvirtual()吗?

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

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

谢谢

LE:我包括一个 .cgi 脚本

4

1 回答 1

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 过滤器的信息的链接,这就是“链处理”的含义:

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

该文档应该能够mod_include在其输出之后mod_wsgi(或之前,如果您想要的话)进行处理。

于 2011-07-21T09:55:19.737 回答