Created
December 20, 2015 12:05
-
-
Save adhpawal/72ee41ba9c36d3f4ccec to your computer and use it in GitHub Desktop.
WildFly and Apache WebServer : AJP Connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
............. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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