Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Dispatcher conf.d syntax error

Avatar

Level 2

Hi all,

 

I have deployed a freshly created dispatcher configuration on AMS but I keep getting the following error:

 

httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 35 of /etc/httpd/conf.d/dispatcher_vhost.conf: Syntax error on line 67 of /etc/httpd/conf.d/enabled_vhosts/aem_author.vhost: Could not open config directory /etc/httpd/conf.d/proxy: No such file or directory

 

The files are completely unaltered and produced straight from the Adobe AEM archetype. For instance line 353 has the following line:

 

# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf

 

I can't see anything wrong with that. Could it be something to do with file formatting?

 

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
5 Replies

Avatar

Community Advisor

Hi @SamFlyn 

 

As per the error message, the syntax issues are at 

  • line 35 of /etc/httpd/conf.d/dispatcher_vhost.conf
  • line 67 of /etc/httpd/conf.d/enabled_vhosts/aem_author.vhost

It looks like vhost files refer to a file under this directory /etc/httpd/conf.d/proxy - either directory or a file is missing

 

If you're not needed proxy configs, I suggest commenting lines where Syntax errors are thrown. 

Avatar

Community Advisor

Hi @SamFlyn ,

Can you please make sure that you have directory conf.d.

Also, please refer to this to verify your configs - https://experienceleague.adobe.com/docs/experience-manager-learn/ams/dispatcher/explanation-config-f...

 

Avatar

Community Advisor

Hi @SamFlyn ,
The files/configurations generated by Maven archetype won't work straight forward. You have make adjustments as per your machine/OS and apache/Docker. 
Which machine/OS you are using. Are you using Apache or Docker ?. The way of setting up dispatcher is different of different machine. Will try to answer based your 
scenario. 
You can follow documentation as mention in other answer. 
Also, I am leaving a link of video tutorials of setting dispatcher on MAC M1/ Apache. Please have a look if you are interested. 
https://www.youtube.com/watch?v=RDTTyfmeANA&list=PLEaEQSM_Y4tnHRdMB9PRXgP_AmbeUJkXG

Avatar

Correct answer by
Community Advisor

Hi @SamFlyn ,

 

I think similar issue is reported here-

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/deploy-job-is-failed-to-du...

 

Thanks,

Ritesh