logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache/2.4.38 -AH01084: pass request body
Author
adesai



Joined: 12 Jun 2019
Posts: 3
Location: India

PostPosted: Wed 12 Jun '19 9:29    Post subject: Apache/2.4.38 -AH01084: pass request body Reply with quote

Hi, I have just joined the forum to get some answers for my problem. Please reply as it's little urgent.

I am trying to set the webapp using Apache (Server version: Apache/2.4.38 (Unix)) with SSL and Tomcat (Apache Tomcat/8.5.41). Receiving error as Bad Gateway "The proxy server received an invalid response from an upstream server." Error log receives the error as

[Wed Jun 12 07:22:12.570079 2019] [proxy:error] [pid 3353:tid 139908746516224] (70014)End of file found: [client xxx.xx.x.xxx:62271] AH01084: pass request body failed to 127.0.0.1:8988 (localhost)
[Wed Jun 12 07:22:12.570122 2019] [proxy_http:error] [pid 3353:tid 139908746516224] [client xxx.xx.x.xxx:62271] AH01097: pass request body failed to 127.0.0.1:8988 (localhost) from xxx.xx.x.xxx ()
3 tomcat instances are set as str1 (8988), str2 (8987), str3 (8986) with below settings with jvmroute respectively. Server.xml as:

Connector port="8988" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"
Connector port="8010" protocol="AJP/1.3" redirectPort="8443"
Engine name="Catalina" defaultHost="localhost" jvmRoute="str1"
In Httpd.conf with SSL module enabled and pointing httpd-ssl.conf

Listen 80
ServerName abcd.example.com:80
RewriteEngine On
RewriteCond %{SERVER_PORT} =80
RewriteRule (.*) https://abcd.example.com/search [R=301,L]
In httpd-ssl.conf

Listen 443
SSLEngine on
ServerName abcd.example.com:443
In Proxy-balancer.conf:

ProxyPass /search balancer://stcluster/search
ProxyPassReverse /search balancer://stcluster/search
<Proxy balancer://stcluster>
BalancerMember http://localhost:8988 loadfactor=1 route=str1
BalancerMember http://localhost:8987 loadfactor=1 route=str2
BalancerMember http://localhost:8986 loadfactor=1 route=str3
ProxySet lbmethod=bybusyness
ProxySet stickysession=JSESSIONID|jsessionid
ProxySet timeout=300
</Proxy>
Back to top
adesai



Joined: 12 Jun 2019
Posts: 3
Location: India

PostPosted: Thu 13 Jun '19 13:53    Post subject: Reply with quote

Got fix after restoring the old Apache working build. Must be something wrong with proxy-balancer configuration.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 17 Jun '19 15:18    Post subject: Reply with quote

Did you ever try mod_proxy_ajp ?
Back to top
adesai



Joined: 12 Jun 2019
Posts: 3
Location: India

PostPosted: Mon 17 Jun '19 15:39    Post subject: Reply with quote

No i didn't. Do you think, is it worth to try?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 17 Jun '19 15:52    Post subject: Reply with quote

For me it was after than plain http. I had connected it to jenkins. What is more or less a tomcat clone.
Back to top


Reply to topic   Topic: Apache/2.4.38 -AH01084: pass request body View previous topic :: View next topic
Post new topic   Forum Index -> Apache