Configuration of Multiple Sites/Domains
I need some help with determining best practice solutions for site specific configuration of shared, or server-wide, items in our CQ installation that will soon have multiple sites / domains. The affected items in our server are first the error pages (404/500 pages), second the domain name mappings, third the Sling Resource Resolver mappings (also “URL redirects” and/or vanity urls), and lastly the robots.txt.
- For error pages I need a good way to give each site a custom 404 and 500 error page. I can not find any documentation on this subject at all.
- I want to be able to map the root of each domain, e.g. www.mydomain.com/ => /content/mydomain/en, so that the home page of the site is en.html and all children of en.html are treated as being in the root of the website.
I have tried the solution proposed by this document about multiple domains, http://helpx.adobe.com/cq/kb/HowToMapDomains.html, but that appears to break the server. The best I could ever do with that solution was that the child pages worked but the home page would not come up at all. - I need to separate the sling resource resolver mappings in /etc/map/ for each domain so that I can have distinct mappings for each, but despite the instructions here at http://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html I cannot make nested mappings work properly.
- Also I want to be able to set a separate robots.txt file for each domain. What is the best way to accomplish this? A solution that can be kept within the CQ repository would be ideal since that would make maintenance of these files simpler.
I am fairly new to both Java and Adobe CQ5. Any help you could provide would be greatly appreciated.