Adobe Cloud Service running with multiple websites | Community
Skip to main content
Alberto_Corral
Level 2
October 3, 2023
Solved

Adobe Cloud Service running with multiple websites

  • October 3, 2023
  • 2 replies
  • 1781 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
October 3, 2023
Alberto_Corral
Level 2
October 5, 2023

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.

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 5, 2023

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-functionality/m-p/305586 

 

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
joerghoh
Adobe Employee
Adobe Employee
October 7, 2023

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

Alberto_Corral
Level 2
October 9, 2023

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?