如何解决Apache ProxyPassMatch 匹配路径,包括顶级域
我有两个域
- api.myorg.host
- api.myorg.com
如何匹配基于顶级域及其路径。我试过跟随,但不起作用。
config1.conf
ProxyPassMatch ".host/v2/test(.*)" "https://api.myorg-one.com/v2/test$1" nocanon
ProxyPassReverse ".host/v2/test(.*)" "https://api.myorg-one.com/v2/test$1" nocanon
<LocationMatch ".host/v2/test(.*)">
Order allow,deny
Allow from all
</LocationMatch>
config2.conf
ProxyPassMatch ".com/v2/test(.*)" "https://api.myorg-two.com/v2/test$1" nocanon
ProxyPassReverse ".com/v2/test(.*)" "https://api.myorg-two.com/v2/test$1" nocanon
<LocationMatch ".com/v2/test(.*)">
Order allow,deny
Allow from all
</LocationMatch>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。