403 Forbidden Response is seen for Images when using Dispatcher, a / is also appended to the end of the filename in the URL.

Environment

  • AEM 
  • Apache
  • Dispatcher 

Cause

The extra slash is due to Apache's mod_dir module which appends / to a request URL that maps to a directory.

Resolution

Set DirectorySlash directive to off in Apache's mod_dir module:
      <Directory />
          <IfModule disp_apache2.c>
             # enable dispatcher for ALL request if this is too restrictive,
             # move it to another location
             # RequestHeader add uid "admin"
           DirectorySlash Off
           SetHandler dispatcher-handler
         </IfModule>
         Options FollowSymLinks
         AllowOverride None
      </Directory>

Additional information

DirectorySlash Directive http://httpd.apache.org/docs/current/mod/mod_dir.html#directoryslash Interference with Mod_Dir (Apache) https://docs.adobe.com/docs/en/dispatcher/disp-tshoot.html#Interference with mod_dir (Apache)

Această lucrare este oferită sub licență Atribuire-Necomercial-FărăModificări 3.0 Ne-adaptată Creative Commons  Postările pe Twitter™ şi Facebook nu sunt acoperite de condiţiile de licenţiere Creative Commons.

Prevederi legale   |   Politică de confidențialitate online