"extending httpd" 在 mod_python 的上下文中是什么意思?

What is meant by "extending httpd" in the context of mod_python?

a highly-upvoted comment to this answer中有两个陈述:

mod_wsgi is for running web apps.

mod_python is for extending httpd.

我想第一个陈述将交互式网站称为网络应用程序。但是第二个陈述是什么意思? httpd 是非常常见的为网站提供服务的 Apache 守护程序。 Apache 是如何扩展的?这与 "serving a web app" 有何不同?

这只是意味着 Apache 然后能够解释 Python 脚本并将 python 替换为 HTML/js 以服务于客户端。允许它服务 "web apps" 写入 Python

mod_python 可用于编写一般的 Apache 扩展

mod_rewrite 这样的扩展(尽管配置比较笨拙)可以用 mod_python 编写;它不特定于服务于用 Python 编写的 Web 服务,但可用于修改 Apache 行为,甚至与其他应用程序服务器或内容源结合使用。

original paper introducing mod_python 对此进行了一些详细说明:在 mod_python 中编写的处理程序可以对请求采取一些操作,然后拒绝充当终端处理程序,让其他 Apache 模块(最终包括静态处理程序)决定 return.