apacheapache2apache-configapache2.2

AllowEncodedSlashes Issue


I am currently having issues with encoded slashes on my Apache server. The url structure is as follows:

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

I am then getting a 404 error from Apache (my application should handle all errors.)

Apparently the AllowEncodedSlashes On directive should help me in this spot, but it doesn't seem to be making any impact whatsoever. I've placed it in the httpd.conf like so:

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

AllowEncodedSlashes On
</VirtualHost>

Then restarted Apache with the /etc/init.d/httpd restart command.

I've been trying to solve this issue for days now. I've some people saying that the AllowEncodedSlashes directive works, and some people saying that it's buggy and should be depreciated. I'm wondering if there's an issue with AllowEncodedSlashes and clean URL's working together?

Anyway, all help is appreciated. Thanks in advance.


Solution

  • Seems to be a bug with Apache: https://issues.apache.org/bugzilla/show_bug.cgi?id=35256