无法获取mod_proxy来正确转发编码的斜杠(/)字符(%2f)


11

我设置了一个虚拟主机以重定向ntung-gitblit.localhost-> myserver:1279。但是,它不适用于正向编码的斜杠(%2f)。我尝试访问的URL是,

http://ntung-gitblit.localhost/ABC%2fXYZ

没有AllowEncodedSlashes,它将失败-apache尝试访问/error/HTTP_NOT_FOUND.html.var服务器。设置AllowEncodedSlashes为会On导致以下内部网址匹配,

http://myserver:1279/ABC/XYZ

并将其设置AllowEncodedSlashes为会NoDecode导致以下网址被点击,

http://myserver:1279/ABC%252fXYZ

换句话说,它是过度逃避或逃避。问题:如何使它成功myserver:1279/ABC%2fXYZ

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.