AllowEncodedSlashes not taking effect?

If you are switching on the AllowEncodedSlashes setting in the apache conf file, and it doesn’t seem to be making any difference, then it may well be because you are using vhosts, and the setting is not automatically propergated through them.

You’ll need to edit the vhost and specify the setting within the config part of the vhost:

<VirtualHost *:80>
    ServerName mytest.local
    DocumentRoot /var/www/site2/
    AllowEncodedSlashes On

Be sure to read all about it, and understand the security risks.

5 comments on “AllowEncodedSlashes not taking effect?

  1. Adrian March 19, 2013 5:12 pm

    Oh goooshh! Thaanks!! So simply, and yet so difficult… I was searching for… hours and your only tip helped! I tried .htaccess, httpd.conf… but not vhost!

  2. Oscar April 14, 2014 10:04 pm

    Help I need but only in htaccess
    One example

    • admin April 24, 2014 9:09 am

      I’m not sure how you would add it to the htaccess in all honesty. I looked at the docs and it looks like its a vhost config item.

  3. Matt Bucci August 11, 2017 2:53 am

    You are totally awesome

    • admin August 11, 2017 7:08 am

      lol – thanks

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.