-
1. Re: Help for AJP connection Apache2.x to Wildfly10
rumpelstilzchen926 Sep 8, 2016 7:48 AM (in response to dbist)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
dbist Sep 8, 2016 10:41 AM (in response to rumpelstilzchen926)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
rumpelstilzchen926 Sep 8, 2016 10:50 AM (in response to dbist)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.