Multiple Web apps on publisher and dispatcher server | Community
Skip to main content
Level 2
June 14, 2024
Solved

Multiple Web apps on publisher and dispatcher server

  • June 14, 2024
  • 4 replies
  • 976 views

So I have my publisher server serving an AEM app over port 4503 and a react app over port 3480. Both render fine when accessing through the publisher url IP:port. 

 

The problem I'm having is with my dispatcher server. 

 

In my dispatcher.any I have 2 renderers 

 /renders

  {
    /renderer1

        {
         /hostname "publisher-ip"
         /port "4503"
        }
    /renderer2

       {
       /hostname "publisher-ip"
       /port "3480"
       }
   }

 

Then I have my /filters which allow urls for both renderers. But when loading either of my sites it doesn't know which renderer to get the content from. Both web apps have the same dispatcher url dispatcher.com just the paths are different. 

 

Is there anyway to specify which renderer a filter with choose from? Currently if I keep refreshing the page eventually it will get most resources from one renderer but it's always random.  

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 EstebanBustamante

Hi,

 

I think you need to use a reverse proxy to route the requests properly, please check this thread: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-configuration-for-multiple-site-running-on-same/m-p/602337 

 

Hope this helps

4 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 14, 2024

Hi,

 

I think you need to use a reverse proxy to route the requests properly, please check this thread: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-configuration-for-multiple-site-running-on-same/m-p/602337 

 

Hope this helps

Esteban Bustamante
Shashi_Mulugu
Community Advisor
Community Advisor
June 15, 2024

@amezcua1 you can control it via rendered virtual hosts settings

 

/farms

  {

  /myProducts

    {

    /virtualhosts

      {

      "www.mycompany.com/products/*"

      }

    /renders

      {

      /hostname "server1.myCompany.com"

      /port "80"

      }

    }

  /myCompany

    {

    /virtualhosts

      {

      "www.mycompany.com"

      }

    /renders

      {

      /hostname "server2.myCompany.com"

      /port "80"

      }

    }

  }

 

Please refer to adobe detailed documentation for reference 

 

https://experienceleague.adobe.com/en/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration

 

arunpatidar
Community Advisor
Community Advisor
June 17, 2024

Hi @amezcua1 
You can create multiple farms, each for the app and inside that you can specify renders and filters

https://experienceleague.adobe.com/en/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration#defining-farms-farms 

Arun Patidar
kautuk_sahni
Community Manager
Community Manager
June 18, 2024

@amezcua1 Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni