Why publish port 4503 url is not connecting to Apache server in Dispatcher ??

Avatar

Avatar

sumank23986652

Avatar

sumank23986652

sumank23986652

21-07-2019

When i am trying  to connect the apache server with the publish 4503 for dispatcher. when i am hitting localhost:80/content/we-retail/us/en.html after starting publish instance . then i am getting  this 404 error .

apache.PNG

Apache server gets started and when i am hitting localhost:80/index.html it works and displays as

It works!

But i am not able to connect apache server with my publisher. And i am not able to cache publish resources in my htdocs files under apache server.

Please help me.

Replies

Avatar

Avatar

Himanshu_Singhal

MVP

Avatar

Himanshu_Singhal

MVP

Himanshu_Singhal
MVP

22-07-2019

Please check your dispatcher logs and make sure that AEM Dispatcher settings are correct. Or if you're getting any specific error, please share it...

Avatar

Avatar

sumank23986652

Avatar

sumank23986652

sumank23986652

22-07-2019

Dispatcher log is empty.

However i am getting the below in error.log

[Mon Jul 22 11:38:25 2019] [warn] Dispatcher set as handler, but not configured in server [01HW466704.India.domain.com].

[Mon Jul 22 11:38:25 2019] [error] [client ::1] Attempt to serve directory: C:/Tool/httpd-2.2.34-win32/Apache2/htdocs/

Avatar

Avatar

Himanshu_Singhal

MVP

Avatar

Himanshu_Singhal

MVP

Himanshu_Singhal
MVP

22-07-2019

Hi,

Please follow the link: https://www.aemquickstart.in/2016/12/configure-dispatcher-for-aem.html

Make sure you've all the configuration correct. Check port number specifically and Webserver cache directory and /docroot path should be same.

Avatar

Avatar

Gokul2011

Avatar

Gokul2011

Gokul2011

22-07-2019

Hi Sumak,

DIspatcher module is called out properly. Since Dispatcher log is empty Apache not able to recognize you added disp module as recommended ...

Avatar

Avatar

sumank23986652

Avatar

sumank23986652

sumank23986652

22-07-2019

DIspatcher module is called out properly.

I have added the following file into modules folder.

disp_apache2.2.dll

And i included this below file into httpd.conf

LoadModule dispatcher_module  modules/disp_apache2.2.dll

but still i get  the same error as mentioned above.

Please help me

Avatar

Avatar

Gokul2011

Avatar

Gokul2011

Gokul2011

22-07-2019

Please comment Vhost config and run the plain Httpd.conf  .

Double check with the below URL :

http://www.aemcq5tutorials.com/tutorials/set-up-dispatcher-in-aem/

Make sure to setup dispatcher log to debug mode. 

Avatar

Avatar

aemmarc

Employee

Avatar

aemmarc

Employee

aemmarc
Employee

22-07-2019

Dispatcher on Apache in a Windows environment is not supported.

Dispatcher will only work on a Linux distro

If you're using a Windows Server you need to use IIS.

Avatar

Avatar

Gokul2011

Avatar

Gokul2011

Gokul2011

22-07-2019

Hi Aemmarc,

We can tweek and install Apache on windows machine. 

How to Install Apache Web Server on Windows — SitePoint

Avatar

Avatar

sumank23986652

Avatar

sumank23986652

sumank23986652

25-07-2019

it'a already commented.