Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

dispatcher configuration in apache

Avatar

Level 3

Hi, i have installed AEM 6 in tomcat server (Unix). Publish port is 4503 and application will be accessed as below.

Example content: localhost:4503/aempublish/content/geometrixx-media/en.html.

Installed SSL in tomcat and apache web server. i am using dispatcher 4.1.8 and added below configs

/virtualhosts
      {
        "localhost:10000"
      }

    /renders
      {
      /rend01
        {

        /hostname "127.0.0.1"
        /port "4503"

      }
in filters added below.
/0023 { /type "allow" /url "/aempublish/content/*


Apache configurations: Apache is running at 4504
<VirtualHost localhost:4504>
        ProxyRequests Off
        <Location "/" >
                ProxyPass  https://localhost:10000/ (tried http as well)
                ProxyPassReverse  https://localhost:10000/ (tried http as well)
        </Location>
        SSLEngine on
        SSLCertificateFile <cert file location>
        SSLCertificateKeyFile <cert key location>
</VirtualHost>


<VirtualHost localhost:10000>
        ProxyPreserveHost On
        <Directory "/" >
          <IfModule disp_apache2.c>
                  SetHandler dispatcher-handler
                  ModMimeUsePathInfo On
          </IfModule>
        </Directory>
       SSLEngine on
        SSLCertificateFile <cert file location>
        SSLCertificateKeyFile <cert key location>

</VirtualHost>

 

When i hit the page with apache port i am getting 503 service temporarily unavailable and also see below in apache error logs. But no error in dispatcher logs

[Wed Apr 01 11:38:49 2015] [error] (111)Connection refused: proxy: HTTPS: attempt to connect to <ip address>:10000 (localhost) failed
[Wed Apr 01 11:38:49 2015] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Apr 01 11:38:49 2015] [error] proxy: HTTPS: disabled connection for (localhost)
[Wed Apr 01 11:38:53 2015] [error] proxy: HTTPS: disabled connection for (localhost)
[Wed Apr 01 11:38:53 2015] [error] proxy: HTTPS: disabled connection for (localhost)

when i tried with http, got the same error but it says http: disabled connection for (localhost)

Appreciated for quick response

1 Accepted Solution

Avatar

Correct answer by
Employee

did u disable the firewall or enable the port at publish? Can you also set /usr/sbin/setsebool -P httpd_can_network_connect 1 and see

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

did u disable the firewall or enable the port at publish? Can you also set /usr/sbin/setsebool -P httpd_can_network_connect 1 and see