我正在使用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)
请建议如何实现这一点。
问候斯里达尔