Dispatcher conf.d syntax error | Community
Skip to main content
January 19, 2023
Solved

Dispatcher conf.d syntax error

  • January 19, 2023
  • 4 replies
  • 3252 views

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

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

4 replies

Lokesh_Vajrala
Community Advisor
Community Advisor
January 19, 2023

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. 

ChitraMadan
Community Advisor
Community Advisor
January 19, 2023

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-files.html?lang=en

 

sunil_kumar_
January 20, 2023

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

SamFlynAuthor
January 21, 2023

Hi Sunil! Thanks for replying. I am using docker and I pretty much followed this tutorial here -> https://blogs.perficient.com/2021/01/05/setting-up-a-local-aem-dispatcher-with-docker/..Thanks

Ritesh_Mittal
Community Advisor and Adobe Champion
Ritesh_MittalCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
January 20, 2023