Skip to content

Instantly share code, notes, and snippets.

@adhpawal
Created December 20, 2015 12:05
Show Gist options
  • Save adhpawal/72ee41ba9c36d3f4ccec to your computer and use it in GitHub Desktop.
Save adhpawal/72ee41ba9c36d3f4ccec to your computer and use it in GitHub Desktop.
WildFly and Apache WebServer : AJP Connection
#Goto Configuration directory of WildFly
cd $WILDFLY_HOME/standalone/configuration
#Add Following Content on the standalone.xml file
vi standalone.xml
#Add Following Line,
<ajp-listener name="ajpListener" scheme="http" socket-binding="ajp"/>
#Inside the Block,
<subsystem xmlns="urn:jboss:domain:undertow:2.0">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https"/>
##Insert Here
.............
#Enable AJP Mode and Proxy for Apache
#Enables Mods for Apache
a2enmod alias deflate env mime negotiation proxy proxy_http ssl headers proxy_ajp
#Update Your Virtual Host
<VirtualHost *:80>
ServerName <domain_name>.com
ErrorLog ${APACHE_LOG_DIR}/error_ci.log
CustomLog ${APACHE_LOG_DIR}/access_ci.log combined
//Enables Usage of Proxy with AJP
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment