RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 694939 - mod_proxy_ajp does not honor "ProxyErrorOverride"
Summary: mod_proxy_ajp does not honor "ProxyErrorOverride"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: httpd
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 6.2
Assignee: Joe Orton
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-09 00:01 UTC by Neal Kim
Modified: 2018-11-14 13:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 15:11:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Original proposed patch from Jim Riggs (1.63 KB, patch)
2011-04-09 00:06 UTC, Neal Kim
no flags Details | Diff
Patch against httpd-2.2.15-5.el6 src RPM (1.85 KB, patch)
2011-04-09 00:45 UTC, Neal Kim
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1630 0 normal SHIPPED_LIVE httpd bug fix update 2011-12-06 00:50:47 UTC

Internal Links: 968960 984116

Description Neal Kim 2011-04-09 00:01:17 UTC
Description of problem:

"ProxyErrorOverride On" does not work if used with mod_proxy_ajp.

[ Config Snippet ]

<Proxy *>
AddDefaultCharset Off
Order deny,allow
Allow from all
</Proxy>

ProxyErrorOverride On

<Proxy balancer://ajpCluster>
BalancerMember ajp://somehost1:9324 route=s1 loadfactor=100 retry=10
BalancerMember ajp://somehost2:9324 route=s2 loadfactor=90 retry=10
ProxySet lbmethod=byrequests
ProxySet stickysession=JSESSIONID
</Proxy>

ProxyPass /static balancer://ajpCluster/static
ErrorDocument 404 /index404.html
DocumentRoot "/opt/static/error/"

<Directory /opt/static/eror/>
Order allow,deny
Allow from all
</Directory>

When I access a 404 URL in the /static context, which is proxied with AJP, I get a 404 page from Tomcat. Accessing 404 URLs via non-proxied content works as intended, as defined in "ErrorDocument".

Version-Release number of selected component (if applicable):

httpd-2.2.15-5.el6


How reproducible:

Everytime.


Steps to Reproduce:

1. Define "ErrorDocument"
2. Enable "ProxyErrorOverride"
3. Access 404 URL via definied "ProxyPass" context
  

Actual results:

404 error from backend (proxied) server


Expected results:

404 error as defined in "ErrorDocument" via Apache


Additional info:

Bug originally filed in 2007 via Apache Bugzilla. It looks like this bug has still not been corrected as of the latest upstream version of Apache.

https://issues.apache.org/bugzilla/show_bug.cgi?id=41278

There is a proposed patch but may not be complete (e.g. no special handling of code 401, etc...). Please see comment #1 in the original Apache BZ for more information.

Comment 2 Neal Kim 2011-04-09 00:06:17 UTC
Created attachment 490898 [details]
Original proposed patch from Jim Riggs

Jim Riggs 2009-03-04 20:24:03 EST

Attached is an initial patch that provides this functionality. It may not be complete (e.g. it doesn't do any special handling for 401 like mod_proxy_http
does), and I make no claims to be an expert in the Apache code, so it may not
be complete or 100% correct. That said, though, I have been using this patch
for some time with no issues.

Comment 4 Neal Kim 2011-04-09 00:45:37 UTC
Created attachment 490899 [details]
Patch against httpd-2.2.15-5.el6 src RPM

Comment 5 RHEL Program Management 2011-04-09 06:00:26 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 6 Neal Kim 2011-04-09 07:35:39 UTC
Comment on attachment 490899 [details]
Patch against httpd-2.2.15-5.el6 src RPM

Reversed

Comment 8 Joe Orton 2011-04-27 11:58:16 UTC
There is a fix for this upstream:

http://svn.apache.org/viewvc?rev=1087864&view=rev

Comment 14 errata-xmlrpc 2011-12-06 15:11:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1630.html


Note You need to log in before you can comment on or make changes to this bug.