need error page handler in acs common for 2 domain with seprate 404 page | Community
Skip to main content
New Participant
October 16, 2015
Solved

need error page handler in acs common for 2 domain with seprate 404 page

  • October 16, 2015
  • 3 replies
  • 1172 views

Hi ,

 
I have 2 domains and how to handle the same in acs common error handler.
 
each domain has a separate 404 page.
 
Currently i have set to one of the error page. Please could you suggest how it could be  done.
 
The  setting i have done  in acs common is
 
I am using the below error handler for 404 page
 
/apps/project/config.publish/com.adobe.acs.commons.errorpagehandler.impl.ErrorPageHandlerImpl
 
jcr:primaryType Name sling:OsgiConfig
cache.serve-authenticated Boolean true
cache.ttl Long 300
enabled Boolean true
error-page.system-path String /content/website/404
not-found.behavior String respond-with-404
 
 
Thanks
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 ogill

error-page.system-path  "is the absolute path to system Error page resource to serve if no other more appropriate error pages can be found."

 

This is part of the advanced usage configs. In the earlier sections of [1], there are details on creating error pages per content tree: "Ex. /content/geometrixx/en/errors/404". Would that not suffice? 

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

3 replies

ogillAccepted solution
Employee
October 16, 2015

error-page.system-path  "is the absolute path to system Error page resource to serve if no other more appropriate error pages can be found."

 

This is part of the advanced usage configs. In the earlier sections of [1], there are details on creating error pages per content tree: "Ex. /content/geometrixx/en/errors/404". Would that not suffice? 

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

New Participant
October 16, 2015

under mywebsite in the  /content/website_trial/en_GB i have added the page property

errorPages    String    /content/website_trial/en_GB/error/404

Now if i hit the below it must redirect to /content/website_trial/en_GB/error/404 but it goes to error-page.system-path /content/website/404
http://abc.com/website_trial/en_GB/trail/events/events.html 

Could you please let me know as how this could be sloved

Employee
October 16, 2015

Hi,

Did you follow the walk-through video on how to setup the error handler functionality: http://adobe-consulting-services.github.io/acs-aem-commons/features/errorpagehandler.html

Regards,

Opkar