[英]Apache mod_proxy ProxyPassMatch Regex
I've setup Apache as a reverse proxy for a non public backend server, using mod_proxy. 我已经使用mod_proxy将Apache设置为非公共后端服务器的反向代理。 However one of my ProxyPassMatch directives always returns 404:
但是,我的ProxyPassMatch指令之一始终返回404:
ProxyPassMatch ^/app/files/public/orders/06_production/jobs/([a-zA-Z0-9\-]+)/Preview%20PNG/(V[0-9]+)/([a-zA-Z0-9_\-]+.png)$ http://192.168.2.42/app/files/public/orders/06_production/jobs/$1/Preview%20PNG/$2/$3
This should match an incoming request like this: 这应该匹配这样的传入请求:
/app/files/public/orders/06_production/jobs/P116087/Preview%20PNG/V1/bla.png
Any idea what's wrong with my Regex? 知道我的Regex有什么问题吗?
弄清楚了:
ProxyPassMatch "\A/app/files/public/orders/06_production/jobs/([a-zA-Z0-9\-]+)/Preview PNG/(V[0-9]+)/([a-zA-Z0-9_\-]+.png)\z" "http://192.168.2.42/app/files/public/orders/06_production/jobs/$1/Preview PNG/$2/$3"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.