我配置了 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/