How to enable AJP protocal in WildFly8x to connect Apache server step by steps
WildFly
AJP settings It will update the configuration file of standalone.xml.
WILDFLY_HOME / standalone / configuration / standalone.xml
Please check the AJP port . When I default , it has become a 8009 .
1) Go to WILDFLY_HOME / standalone / configuration / standalone.xml
You can see below info in standalone.xml<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"> <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:8090}"/> <socket-binding
name="management-http" interface="management" port="${jboss.management.http.port:8090}"/> <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/> <socket-binding
name="management-https" interface="management" port="${jboss.management.https.port:9993}"/> <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/> <socket-binding
name="ajp" port="${jboss.ajp.port:8009}"/> <socket-binding name="http" port="${jboss.http.port:8080}"/> <socket-binding
name="http" port="${jboss.http.port:8080}"/> <socket-binding name="https" port="${jboss.https.port:8443}"/> <socket-binding
name="https" port="${jboss.https.port:8443}"/> <socket-binding name="txn-recovery-environment" port="4712"/> <socket-binding
name="txn-recovery-environment" port="4712"/> <socket-binding name="txn-status-manager" port="4713"/> <socket-binding
name="txn-status-manager" port="4713"/> <outbound-socket-binding name="mail-smtp"> <outbound-socket-binding
name="mail-smtp"> <remote-destination host="localhost" port="25"/> <remote-destination
host="localhost" port="25"/> </outbound-socket-binding> </outbound-socket-binding>
</socket-binding-group
2)You need to add below line under <server name="default-server">
and save
<ajp-listener name="ajpListner" scheme="http" socket-binding="ajp"/>
After save restart of
WildFly to Setting of AJP WildFly is complete .Then test AJP protocol listing or not using this command. netstat
-a | grep 8009
No comments:
Post a Comment