apache httpd 替代品不起作用

标签 apache

我配置了 apache httpd 来应用替代。
在我看来,这正是医生所说的。
然而,它什么都不做。

它有什么问题?

<VirtualHost domain:443>
    SSLEngine on
    ....

    ProxyPass /cms/ http://domain2/
    ProxyPassReverse /cms/ http://domain2/
    Substitute "s|div|DIV|ni"
</VirtualHost>

(Centos 上的 Apache 2.4.16)

最佳答案

同时我想出了如何让它工作

<VirtualHost domain:443>
    SSLEngine on
    ....
# In some case the following line is neccessary
    RequestHeader unset Accept-Encoding

    <Location /cms >
         ProxyPass http://domain2/
         ProxyPassReverse http://domain2/
         AddOutputFilterByType SUBSTITUTE text/html
         Substitute "s|div|DIV|ni"
    </Location>
</VirtualHost>

我希望这可以帮助其他人克服类似的问题。

(我们用它来交换来自代理源的 url,
经过努力,apache httpd 是一个很棒的工具;-))

关于apache httpd 替代品不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32603182/

相关文章:

apache - 可以按需启动的用于 Windows 的简单 HTTP 服务器应用程序?

即使具有广泛开放的权限,PHP fopen() 也会在文件上失败

java - Apache POI,CREATE_NULL_AS_BLANK 导致错误

apache - 如何根据用户角色将 geoserver WFS 服务配置为仅访问某些图层?

php - 同一网络上的 2 个 apache 实例?

java - Tomcat : How to get opened jdbc:oracle connection's stack trace?

Apache 计时码 : how to access web ui

php - 在 Ubuntu 中调用未定义的函数 odbc_connect()

java - tomcat7 maven插件忽略配置

linux - Apache httpd 动态 URL 重定向