Apache AllowEncodedSlashes问题

我目前在我的Apache服务器上有编码的斜杠问题。 url结构如下:

www.site.com/url/http%3A%2F%2Fwww.anotherurl.com 

然后,我得到了从Apache的404错误(我的应用程序应该处理所有的错误。)

显然AllowEncodedSlashes On指令应该在这个位置帮助我,但它似乎没有任何影响。 我把它放在httpd.conf中,如下所示:

 <VirtualHost *:80> DocumentRoot /var/www/vhosts/site.com/httpdocs ServerName site.com AllowEncodedSlashes On </VirtualHost> 

然后使用/etc/init.d/httpd restart命令重新启动Apache。

我一直在试图解决这个问题好几天了。 我有些人说AllowEncodedSlashes指令是有效的,有些人说这是bug,应该折旧。 我想知道是否有AllowEncodedSlashes和干净的URL一起工作的问题?

无论如何,所有的帮助表示赞赏。 提前致谢。

似乎这是Apache中的一个已知错误: https : //issues.apache.org/bugzilla/show_bug.cgi?id = 35256

我从来没有尝试过,但只是读了AcceptEncodedSlashes的apache手册,它说:

打开AllowEncodedSlashes On与PATH_INFO结合使用时非常有用。

http://httpd.apache.org/docs/2.0/mod/core.html#acceptpathinfo

在您的configuration中打开AcceptPathInfo?

编辑:只注意到':'编码与%3A ..也许这是造成这个问题。