Expand my Community achievements bar.

SOLVED

Multiple Web apps on publisher and dispatcher server

Avatar

Level 2

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.  

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-f... 

 

Hope this helps



Esteban Bustamante

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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-f... 

 

Hope this helps



Esteban Bustamante

Avatar

Community Advisor

@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/dispatche...

 

Avatar

Community Advisor

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/dispatche... 



Arun Patidar

Avatar

Administrator

@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