' / ' is getting appended to the URL while accessing PPTX docs | Community
Skip to main content
ranadyutis95334
New Participant
November 16, 2015
Solved

' / ' is getting appended to the URL while accessing PPTX docs

  • November 16, 2015
  • 5 replies
  • 3289 views

While access a PPTX docs in AEM a ' / ' is getting appended to the URL. While the same docs can be opened in PDF format.  The issue is happening while accessing the file through dispatcher. We are using AEM 5.6.1

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

Hi

I have found a documentation stating URL Fixup by Apache 2.X,

Apache 2.x

In Apache 2.x things are different. A module can handle different stages of the request, such as URL fixup.mod_dir handles this stage by redirecting a request (when the URL maps to a directory) to the URL with a/ appended.

Dispatcher does not intercept the mod_dir fixup, but completely handles the request to the redirected URL (i.e. with / appended). This might pose a problem if the remote server (e.g. AEM) handles requests to/a_path differently to requests to /a_path/ (when /a_path maps to an existing directory).

If this happens you must either:

  • disable mod_dir for the Directory or Location subtree handled by the dispatcher
  • use DirectorySlash Off to configure mod_dir not to append /
  •  

I hope this would help you.

Thanks and Regards 

Kautuk Sahni

5 replies

New Participant
May 31, 2019

Perfect, Thanks

ranadyutis95334
New Participant
April 30, 2019

Yes, please clear the cache. also after making dispatcher changes please restart apache in order to make the change effective.

New Participant
April 29, 2019

Hi @kautuksahni​/ @ranadyutis95334917,

I'm new in dealing with dispatcher issues.
We have a similar issue with the dispatcher. We updated the apache configuration as suggested and restarted the apache. Do we need to clear cache apart from the restart to solve this issue?

Thanks,
Hemanth

kautuk_sahni
kautuk_sahniAccepted solution
Employee
November 17, 2015

Hi

I have found a documentation stating URL Fixup by Apache 2.X,

Apache 2.x

In Apache 2.x things are different. A module can handle different stages of the request, such as URL fixup.mod_dir handles this stage by redirecting a request (when the URL maps to a directory) to the URL with a/ appended.

Dispatcher does not intercept the mod_dir fixup, but completely handles the request to the redirected URL (i.e. with / appended). This might pose a problem if the remote server (e.g. AEM) handles requests to/a_path differently to requests to /a_path/ (when /a_path maps to an existing directory).

If this happens you must either:

  • disable mod_dir for the Directory or Location subtree handled by the dispatcher
  • use DirectorySlash Off to configure mod_dir not to append /
  •  

I hope this would help you.

Thanks and Regards 

Kautuk Sahni

Kautuk Sahni
Lokesh_Shivalingaiah
New Participant
November 16, 2015

Is it specific to pptx files ??

and if its happening only via dispatcher, do you have any rules to '/' for any regex ?