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.2 ProxyPass to IIS 8.0 - Intermittent Errors
Author
au_z71



Joined: 06 Apr 2016
Posts: 2

PostPosted: Wed 06 Apr '16 16:10    Post subject: Apache 2.2 ProxyPass to IIS 8.0 - Intermittent Errors Reply with quote

Hi Forum,

I have a externally facing URL which is load balanced through an F5 load balancer. That URL is balanced between two Apache 2.2 servers which then proxy the information to the two internal Windows Server 2012 servers running IIS 8.0. Occasionally, we get this error:
"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."

After refreshing the page, sometimes taking up to 4 refreshes of the page, the error goes away and the application loads and runs without any issues.

This is the error that is in the Apache log:
[error] (103)Software caused connection abort: proxy: pass request body failed to <IP_Removed>
[error] (103)Software caused connection abort: proxy: pass request body failed to <IP_Removed> from <IP_Removed>

This is the current config on Apache:
<Proxy balancer://app_name>
BalancerMember http://server_name_1/app_name
BalancerMember http://server_name_2/app_name
ProxySet lbmethod=byrequests maxattempts=20
</Proxy>
ProxyPass /app_name balancer://app_name
ProxyPassReverse /app_name balancer://app_name

Any ideas on how we can resolve this issue?
Back to top
James Blond
Moderator


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

PostPosted: Fri 08 Apr '16 17:41    Post subject: Reply with quote

I've seen that error using a SSL backend or a buggy backend server. Sometimes it helped to disable KeepAlive to the backend server.

The reverse proxy handling is much better with Apache 2.4. Also 2.2 is almost EOL.
Back to top
au_z71



Joined: 06 Apr 2016
Posts: 2

PostPosted: Fri 08 Apr '16 18:15    Post subject: RESOLVED Reply with quote

We found the issue after a several days of researching. After adding the below settings, we were able to resolve the issue.

# Define the server wide KeepAlive states
Timeout 300
ProxyTimeout 120
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
SetEnv proxy-initial-not-pooled 1
KeepAlive On
MaxKeepAliveRequests 150
KeepAliveTimeout 15
Back to top


Reply to topic   Topic: Apache 2.2 ProxyPass to IIS 8.0 - Intermittent Errors View previous topic :: View next topic
Post new topic   Forum Index -> Apache