AEM Dispatcher ErrorDocument URL not showing up for 500 error codes only | Community
Skip to main content
Tanika02
Level 7
April 27, 2023
Solved

AEM Dispatcher ErrorDocument URL not showing up for 500 error codes only

  • April 27, 2023
  • 2 replies
  • 2633 views

Hello Adobe Community,

 

Need your help!

 

I have the below Error Document vhost configuration written for my site as quoted below -

 

<LocationMatch />
ErrorDocument 404 /content/wknd/404.html
ErrorDocument 500 /content/wknd/500.html
</LocationMatch>

 Now, 404 are handled well, but if let's say a page is throwing 500 I am not getting redirected to the 500 error page as configured above.

 

Can anyone please suggest what could be a potential issue here?

 

Thanks,

Tanika

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 joerghoh

Can you check the DispatcherPassError configuration setting in the dispatcher_vhost.conf (if you were starting with a recent archetype version).

You should set

 

DispatcherPassError 1

 

then the dispatcher will also delegate the error code handling for the httpd.

 

(see the documentation https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/getting-started/dispatcher-install.html?lang=en#apache-web-server-configure-apache-web-server-for-dispatcher)

 

2 replies

kautuk_sahni
Community Manager
Community Manager
May 26, 2023

@joerghoh Requet your review to this post. 

Kautuk Sahni
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
June 8, 2023

Can you check the DispatcherPassError configuration setting in the dispatcher_vhost.conf (if you were starting with a recent archetype version).

You should set

 

DispatcherPassError 1

 

then the dispatcher will also delegate the error code handling for the httpd.

 

(see the documentation https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/getting-started/dispatcher-install.html?lang=en#apache-web-server-configure-apache-web-server-for-dispatcher)

 

Tanika02
Tanika02Author
Level 7
June 13, 2023

Thankyou @joerghoh !

 

This has solved the problem.