Expand my Community achievements bar.

404 pages configuration

Avatar

Community Advisor

Hi All,

We have some paths

/content/dam/www/public/

/content/dam/doc/design

here when these page are hit it throwing some errors like Runtime error and shows all the dispatcher confiurations like

ApacheSLing/2.4 (Windows server version X.X.X.X)

how can we show 404 pages for these type of content.

 

Thanks,

Mani Kumar K

5 Replies

Avatar

Community Advisor

smacdonald2008 wrote...

https://helpx.adobe.com/experience-manager/kb/CustomErrorHandling.html

 

This describes about /content/pages but i want to customsize my errorpage for /content/dam(Like 403 forbidden error)

Hi Mani, 

It should work for any 404 in that instance, nothing specific to /content/pages

However, you can also use the error pages from acs commons. refer [1] for the same

[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.html

Avatar

Community Advisor

bsloki wrote...

Hi Mani, 

It should work for any 404 in that instance, nothing specific to /content/pages

However, you can also use the error pages from acs commons. refer [1] for the same

[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.html

 

Can you please try in your local instance for localhost:4502/content/dam

we will get some error as

Error:

Internal Error (No exception to report)

RequestURI=/content/dam/

Servlet=org.apache.sling.servlets.get.DefaultGetServlet

ApacheSling/2.4(jetty///version///Java Hotspot)

How can we customize these errors ??

 

Thanks,

Mani Kumar K

Avatar

Administrator

Hi

Just adding reference hare:-

Link:- https://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.html

Video:- http://aemcasts.com/aem/episode-11.html

//In AEM Dispatcher configuration, set DispatcherPassError to ‘0’. This allows erring requests to be sent back to AEM.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni