Configuring Apache dispatcher with cq | Community
Skip to main content
vasimakram
October 16, 2015
Solved

Configuring Apache dispatcher with cq

  • October 16, 2015
  • 8 replies
  • 1581 views

I have installed "Apache2.2" in my machine.
I have downloaded "dispatcher-apache2.2-windows-x86-4.1.9.zip" file, unzipped it and placed the "disp_apache2.2.dll" in modules folder of dispatcher.
I copied "dispatcher.any" file in conf folder and registered my server port number in "dispatcher.any" file as shown below.

 

 # The load will be balanced among these render instances
    /renders
      {
      /rend01
        {
        # Hostname or IP of the render
        /hostname "127.0.0.1"
        # Port of the render
        /port "4503"
        # Connect timeout in milliseconds, 0 to wait indefinitely
        # /timeout "0"
        }
      }

 

I have registered IP address for server in host file as shown below

# localhost name resolution is handled within DNS itself.
    127.0.0.1       www.yyy.com

 

when ever I am trying www.yyy.com in browser it always showing it works ! as shown in image.

Its not pointing to Server.

How can this be solved ?

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

Hi,

the page displaying "It works" is the default page Apache presents when nothing is configured. Have you restarted your Apache webserver after the reconfiguration? Is the dispatcher.log displaying anything meaningful?

Jörg

8 replies

Lokesh_Shivalingaiah
October 16, 2015

Refer this [1] and also attach your complete dispatcher.any file 

[1] http://experience-aem.blogspot.com/2015/03/aem-6-sp2-simple-dispatcher-configuration.html

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi,

the page displaying "It works" is the default page Apache presents when nothing is configured. Have you restarted your Apache webserver after the reconfiguration? Is the dispatcher.log displaying anything meaningful?

Jörg

Adobe Employee
October 16, 2015

Hi,

Search for rewriting "/" in Apache. You can write a rewrite rule that maps / to /content/site/index.html

Regards,

Opkar

vasimakram
October 16, 2015

Hi,

Thinks for your reply. The problem is solved after restarting Apache webserver.

vasimakram
October 16, 2015

I tried as mentioned above. But I am getting the same result. I have attached dispatcher.any and httpd files.

Adobe Employee
October 16, 2015

Hi,

have a look at [1], search for 

00   RewriteEngine On 01   RewriteRule ^/$ /content/geometrixx/en.html [PT,L]

This article gives a good overview, of using Apache and AEM. All of it is not suitable for your simple use case, but you can extract what you need from here.

Here is another good article [2]

Regards,

Opkar

[1] https://www.cognifide.com/blogs/cq/multidomain-cq-mappings-and-apache-configuration/#.VcZ_Knh_8sA

[2] http://www.wemblog.com/2012/07/how-to-use-dispatcher-with-mapped.html

vasimakram
October 16, 2015

Hi,

Thanks for your reply. My problem is not about rewrite. My dispatcher is unable to access cq server.

Adobe Employee
October 16, 2015

www.yyy.com will always go to the web server defined root.

What happens when you add the path to one of your pages after www.yyy.com

Did you write the page which prints it works?