3 Replies Latest reply on Sep 8, 2016 10:50 AM by Dietrich Schmidt

    Help for AJP connection Apache2.x to Wildfly10

    Deependra Bist Newbie

      Hello,

      I am working with Wildfly10 and I have hard time to configure the ajp connector. I need to connect front end Apache2.x to back end Wildfly10. can you please help on this. Thank you so much for your time and help an advance.

        • 1. Re: Help for AJP connection Apache2.x to Wildfly10
          Dietrich Schmidt Newbie

          Hello,

           

          AJP/1.3 is already configured for port 8009. Thus it suffices to activate the port through adding this line

          to standalone.xml to the web subsystem: <ajp-listener name="ajp-default" socket-binding="ajp" />

           

          Here is the context from standalone.xml:

          <server name="default-server"> 
            <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
            <ajp-listener name="ajp-default" socket-binding="ajp" />
            <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
            <host name="default-host" alias="localhost">
              <location name="/" handler="welcome-content"/>
              <filter-ref name="server-header"/>
              <filter-ref name="x-powered-by-header"/>
            </host>
          </server>

          See also Apache httpd - WildFly 10 - Project Documentation Editor

          • 2. Re: Help for AJP connection Apache2.x to Wildfly10
            Deependra Bist Newbie

            Thank you so much Dietrich for your help. one more question, can you please provide the hint for Apache side configuration. I think i need to configure the proxy in Apache side. please! Please!! let me know if you have any useful information for me.

             

            Thank you again.

            • 3. Re: Help for AJP connection Apache2.x to Wildfly10
              Dietrich Schmidt Newbie

              Hi Deependra,

               

              apache configuration is simple, here is an example:

               

              # für AJP/1.3

              LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

               

              <VirtualHost *:80>

               

                ProxyRequests Off

                  <Proxy *>

                  Require all granted

                </Proxy>

               

                <IfModule mod_proxy_ajp.c>

                  ProxyPass /info ajp://192.168.90.55:8009/info

                </IfModule>

              </VirtualHost>

               

              Load the proxy_ajp module, and define the forwarding of the /info/* URLs

              to the Wildfly listening on port 8009 inside a VirtualHost.

               

              ProxyRequests Off turns revers proxying off.