osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 62422] New: Allow ProxySet to be used inside <If> expr.


https://bz.apache.org/bugzilla/show_bug.cgi?id=62422

            Bug ID: 62422
           Summary: Allow ProxySet to be used inside <If> expr.
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
          Assignee: bugs@xxxxxxxxxxxxxxxx
          Reporter: raphael.droz@xxxxxxxxx
  Target Milestone: ---

Sample:

```
<VirtualHost *:80>
  <Proxy "foo">
  </Proxy>
  <If "%{REQUEST_METHOD} == 'POST'">
    ProxySet "foo" timeout=10
  </If>
  <If "%{REQUEST_METHOD} == 'GET'">
    ProxySet "foo" timeout=2
  </If>
</VirtualHost>
```

Expected:
$ curl -X POST / # should timeout after 10 seconds
$ curl -X GET  / # should timeout after 2 seconds

Actual:
$ curl -X POST / # timeout after 2 seconds
$ curl -X GET  / # timeout after 2 seconds


Note:
* According to above test, latest ProxySet directive is considered disregarding
the enclosing <If-expr>
* Neither ProxyTimeout nor Proxy are allowed inside <If-expr>
* ProxySet inside <If-expr> inside <Proxy> won't work either (proxy URL is
mandatory but unknown)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx