【问题标题】:Adding custom header on serving static files with Apache在使用 Apache 提供静态文件时添加自定义标头
【发布时间】:2010-11-16 09:50:48
【问题描述】:

是否可以在 Apache 提供静态内容 (image/js/css) 之前发送额外的自定义标头(例如使用 wsgi 应用程序)?

【问题讨论】:

    标签: python apache mod-wsgi wsgi


    【解决方案1】:

    使用 Apache mod_headers 模块。

    http://httpd.apache.org/docs/2.2/mod/mod_headers.html

    没有办法使用 mod_wsgi。

    如果你真的需要的话,你可以用 mod_python 来做,但最好尝试用内置的 Apache 模块来做。

    【讨论】:

      猜你喜欢
      • 2010-09-20
      • 2019-07-16
      • 1970-01-01
      • 2023-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-28
      • 2014-10-04
      相关资源
      最近更新 更多