小编use*_*950的帖子

如何使用 ProxyMatch 或 ProxyPassMatch 和 Regex 来映射多个上下文路径

我正在使用IBM 的 IHS Webserver,它构建在 Apache Web 服务器版本 2.2.4 之上。

我的要求是在匹配中使用正则表达式代理传递各种上下文路径。

我尝试使用,ProxyPassMatch但出现以下错误

错误:“无效的 ProxyPass|ProxyPassMatch 参数。参数必须采用‘key=value’形式”

<LocationMatch "^/(ae/en|ar/en|ar/es|at/en|au/en|be/en|br/en)/">
Order Allow,Deny
Allow from all
ProxyPass http://www.xyz.com.au:80/au/en/      #(should keep varying as per the regex matched in location match )
ProxyReverse http://www.xyz.com.au:80/au/en/   #(should keep varying as per the regex matched in location match )
</LocationMatch>
Run Code Online (Sandbox Code Playgroud)

请建议如何实现这一点。

问候斯里达尔

regex apache contextpath

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

apache ×1

contextpath ×1

regex ×1