DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

Apache integration with JBoss through proxy_ajp

April 6, 2018 DbAppWeb Admin

Problem

[root@dbappweb bin]# vi /etc/httpd/conf.d/proxy_ajp.conf

ProxyPass /TESTAPP/ ajp://10.20.2.22:8009/TESTAPP/

I have added the above line in proxy_ajp.conf file on my apache web server to access my application running on JBoss. but when tried to access my application through the url given below got the error.

Error on Browser while accessing the below URL:

https://dbappweb.com/TESTAPP/

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

When i checked the apache ssl_error_log file, found the below error entries:

[Mon Mar 19 11:51:59 2018] [error] ajp_read_header: ajp_ilink_receive failed
[Mon Mar 19 11:51:59 2018] [error] (120007)APR does not understand this error code: proxy: read response failed from (null) (10.20.1.22)

Reason

Port 8009 was not being telnetted from apache machine to JBOSS machine. There was no firewall between these two and the local firewall of both the machines were also off. To access the application through proxy_ajp module port no 8009 should be telnetted.

[root@dbappweb ~]# telnet 10.20.2.22 8009
Trying 10.20.2.22...
telnet: connect to address 10.20.2.22: Connection refused
[root@dbappweb ~]#

Solution

Add the below line of code in the standalone.xml file of the JBoss application server.

<ajp-listener name=”ajp” socket-binding=”ajp” max-post-size=”1048576000″/>

[root@JBOSS bin]# vi /home/wildfly/wildfly-11.0.0.Final/standalone/configuration/standalone.xml
<server name="default-server">
 <ajp-listener name="ajp" socket-binding="ajp" max-post-size="1048576000"/>
 <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
 <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"/>
 <http-invoker security-realm="ApplicationRealm"/>
 </host>
 </server>

Retarted the JBOSS application server services to reflect the above changes which i have made above.

[root@dbappweb ~]# telnet 10.20.2.22 8009
Trying 10.30.1.66...
Connected to vip-dbrac2 (10.20.2.22).
Escape character is '^]'.
^]
telnet> Connection closed.
[root@dbappweb ~]#

Now URL https://dbappweb.com/TESTAPP/ is accessible and application too.

Last Updated: Apr 06, 2018

Prev Article
Next Article
Tags:Apache 2.2.3 JBoss Application Server Sys Admin Telnet Service

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com