Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

Adobe Cloud Service running with multiple websites

Avatar

Level 3

Hi I want to configure my cloud dispatcher for managing multiples websites.

 

I have read in a  post something similar...

 

But I am in Cloud Service, not managed, so the dispatcher.any file of my configuration says:

 

#
# This is a file provided by the runtime environment and only included for
# illustration purposes.
#
# DO NOT EDIT this file, your changes will have no impact on your deployment.
#

 

I would like to point to my websites like this:

 

https://publish.adobeaemcloud.com/siteA goes to my site under /content/siteA/site--A/es/homeA.html

and

https://publish.adobeaemcloud.com/siteB goes to my site under /content/siteB/site--B/es/homeB.html

 

How can I configure my dispatcher to do this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
6 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 3

Hi Esteban.

 

The problem with this documentation is that they assume that we have a domain for each site. In our environment we must share the same domain for all the sites. Actually we have left one farm file to manage all the traffic.

 

We tried to use more than one farm, but dispatcher validation always fails in the deployment. In addition we can´t install docker in our PC´s and we haven´t a Linux environment to test the configuration.

Avatar

Community Advisor

If you have the same domain, I think what you need to do is rely on redirects and mappings, to automatically handle the map/resolve from "siteA" to "/content/siteA". 

 

Please check these resources which will help you to solve your scenario:

https://www.youtube.com/watch?v=bJ_cXcAE7G8 

https://blog.3sharecorp.com/shortening-urls-in-aem

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-url-shortening-functio... 

 

For your redirections, you can even use this tool to test it online if you have trouble with your local dispatcher: https://technicalseo.com/tools/htaccess/ 



Esteban Bustamante

Avatar

Level 3

Thanks Esteban. I will check.

 

It is being very hard to configure the dispatcher ..... There is no an archetype or example for multisite and the validator always throws errors about farms, renders ..... 

Avatar

Employee

In this case I would just use a single farm and implement rewrites on the dispatcher to perform these redirects.

Avatar

Level 3

But if you use a single farm then, you only have a virtual host, because the farm point to a single virtualhost isn't it?