You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/09/01 23:25:05 UTC

DO NOT REPLY [Bug 51755] New: mod_proxy failonstatus option, mentioned in the documentation isn't supported

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

             Bug #: 51755
           Summary: mod_proxy failonstatus option, mentioned in the
                    documentation isn't supported
           Product: Apache httpd-2
           Version: 2.2-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: sergeyfd@gmail.com
    Classification: Unclassified


Documentation for mod_proxy in HTTPD 2.2 has following option:

failonstatus     -     A single or comma-separated list of HTTP status codes.
If set this will force the worker into error state when the backend returns any
status code in the list. Worker recovery behaves the same as other worker
errors. 

Yet when I try to use it httpd complains that the option is unknown. I've also
checked source code for mod_proxy in 2.2.15 and didn't find that option there.

To reproduce the bug just try to use failonstatus option in HTTPD 2.2
configuration for balancer type of proxy.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 51755] mod_proxy failonstatus option, mentioned in the documentation isn't supported

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51755

--- Comment #2 from Serge Dubrouski <se...@gmail.com> 2011-09-02 02:44:59 UTC ---
What version of Apache did you test this configuration? 

In my case of CentOS 5.6:

rpm -qa | grep httpd
httpd-2.2.3-45.el5.centos.1


I'm getting "Syntax error on line 1014 of /etc/httpd/conf/httpd.conf:
ProxyPass unknown Balancer parameter" for you configuration.

Manually compiled 2.2.15 produces exactly the same error.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 51755] mod_proxy failonstatus option, mentioned in the documentation isn't supported

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51755

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Eric Covener <co...@gmail.com> 2011-09-02 01:03:37 UTC ---
Works for me:

Listen 81
Listen 82
ProxyPass /bal/ balancer://mycluster/  failonstatus=410
<Proxy balancer://mycluster>
BalancerMember http://localhost:81/
BalancerMember http://localhost:82/
</Proxy>

<virtualhost *:81 *:82>
RewriteEngine on
RewriteRule .* - [G]
</virtualhost>

[Thu Sep 01 21:02:41 2011] [error] proxy: BALANCER: (balancer://mycluster). 
Forcing recovery for worker (http://localhost:81/), failonstatus 410

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 51755] mod_proxy failonstatus option, mentioned in the documentation isn't supported

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51755

--- Comment #3 from Rainer Jung <ra...@kippdata.de> 2011-09-02 02:58:53 UTC ---
Changes with Apache 2.2.17

 *) Proxy balancer: support setting error status according to HTTP response
    code from a backend.  PR 48939.  [Daniel Ruggeri <DRuggeri primary.net>]

Note that the latest version is 2.2.20. 

Bugzilla is not a support forum. Please post further questionto the users list.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org