Expand my Community achievements bar.

SOLVED

Dispatcher setup on Linux Error

Avatar

Level 2

Hi all,

 

I was trying to setup a dispatcher on our Linux server which is also running AEM on 4503. I followed the Adobe documentation at "Installing Dispatcher | Adobe Experience Manager"

 

When i add an entry DispatcherConfig conf/dispatcher.any inside conf/httpd.conf file, i am not able to restart httpd.

 

I have only modified the below files as per the documentation, attached them for your reference

httpd.conf file (placed under conf directory) 

dispatcher.any (placed under conf directory) 

 

If i comment the line which prevents dispatcher restart, from logs i could see dispatcher returning 404 and also says "Dispatcher set as handler, but not configured in server [publisher url]"

 

I am able to see Dispatcher initialized successfully message, so i know dispatcher module has been loaded successfully.

For a start i included wild cards under /virtualhosts in dispatcher.any. Added aem publisher URL under /renders . Anything else i am missing ?

 

Thanks for any help that you could offer.

Regards,

Abhishek

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@kolluax have you tried to setup Apache first without dispatcher? It should work as a standalone webserver. Then we can dispatcher configs to make it dispatcher.

 

In your httpd file, I can't see VHost configuration inside which we need to configure dispatcher handles.

 

https://experienceleague.adobe.com/en/docs/experience-manager-dispatcher/using/getting-started/dispa...

View solution in original post

5 Replies

Avatar

Correct answer by
Community Advisor

@kolluax have you tried to setup Apache first without dispatcher? It should work as a standalone webserver. Then we can dispatcher configs to make it dispatcher.

 

In your httpd file, I can't see VHost configuration inside which we need to configure dispatcher handles.

 

https://experienceleague.adobe.com/en/docs/experience-manager-dispatcher/using/getting-started/dispa...

Avatar

Level 2

@Shashi_Mulugu  Thanks for the reply, If you look at the last line on my httpd.conf, i have includes conf.d/*.conf , this directory contains a dispatcher.conf which has those handles configured. Again, even on this file for the directive "DispatcherConfig" when i define conf/dispatcher.any, my HTTPD wont start.

I think my problem is to try tell HTTPD (httpd.conf) where my dispatcher configs are (dispatcher.any).

How would i know my Apache is working ? When i hit the port i could see requests coming to access.log. Should i place a sample index.html under /etc/httpd (?) which is my root ?

 

@BrianKasingli  - This is an on prem installation, can i find this validate.sh under dispatcher configs downloaded from project archetype ?

 

Thanks,

Abhishek

Avatar

Community Advisor

When using AEM dispatcher locally, the local dispatcher typically won't start or function properly if your dispatcher validation rules fail. Dispatcher configuration validation is critical in AEMaaCS to ensure that the rules adhere to the strict configurations enforced by the cloud environment.
Use the validate.sh script provided by Adobe within the dispatcher tools package to test and resolve any validation issues before deploying or running the dispatcher locally.
Documentation: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/con...

 

Avatar

Administrator

@kolluax  Did you find the suggestion 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

Avatar

Level 2

Thank you, i had to move the dispatcher handles into dispatcher.vhost.conf ( /conf.d) which fixed the issue. For some reason, having the handle within httpd.conf was throwing syntax errors and preventing restart. 

Thanks,

Abhishek