Skip to end of metadata
Go to start of metadata

The recommended front-end module is mod_cluster but mod_jk or mod_proxy could be used as in Tomcat or other AS version.

To use AJP define a ajp connector in the web subsystem like:

<subsystem xmlns="urn:jboss:domain:web:1.0">
            <connector name="http" protocol="HTTP/1.1" socket-binding="http"/>
            <connector name="ajp" protocol="AJP/1.3" socket-binding="ajp"/>

 Note there is a bug (AS7-4478) in JBoss AS 7.1.Final (and possibly 7.1.1) which causes non absolute redirects to fail when using AJP 1.3 the work around is

            <connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" scheme="http"/>

To the ajp in the in the socket-binding-group like:

<socket-binding-group name="standard-sockets" default-interface="public">
         ....
           <socket-binding name="http" port="8080"/>
           <socket-binding name="ajp" port="8009"/>
           <socket-binding name="https" port="8443"/>

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. May 28, 2013

    Hi

    I have setup mod_jk against JBoss AS 7.1.0.Final but it doesn't work. 

    Here my configuration in domain.xml

    <subsystem xmlns="urn:jboss:domain:web:1.1" native="false" default-virtual-server="default-host" instance-id="wrk1">
    	<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
            <connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" />
            <virtual-server name="default-host" enable-welcome-root="true">
            	<alias name="localhost"/>
                    <alias name="example.com"/>
            </virtual-server>
    </subsystem>
    ...
    ...
    <socket-binding-group name="standard-sockets" default-interface="public">
                <socket-binding name="http" port="8080"/>
                <socket-binding name="ajp" port="8009"/>
    ...
    </socket-binding-group>
    
    
    Could you help me? What am I missing?