Restrict Proxy by method

Restrict Proxy by method

am 24.10.2009 14:18:08 von Aaron Dalton

Is there a way to tell a proxy server to only forward requests using a
particular method (GET, POST, etc...)? I have a web app with a front
and back end server. I want the front end to pass along all GETs to the
back, but reject all other methods. I've been using , but that
does not work. I would appreciate any assistance.



ProxyPass http://backend/fs
ProxyPassReverse http://backend/fs



Thanks for your time!
Aaron


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Restrict Proxy by method

am 24.10.2009 14:37:07 von Nick Kew

On 24 Oct 2009, at 13:18, Aaron Dalton wrote:

> Is there a way to tell a proxy server to only forward requests using
> a particular method (GET, POST, etc...)? I have a web app with a
> front and back end server. I want the front end to pass along all
> GETs to the back, but reject all other methods. I've been using
> , but that does not work. I would appreciate any assistance.
>
>
>
> ProxyPass http://backend/fs
> ProxyPassReverse http://backend/fs
>

>


Won't work. isn't a general-purpose container.

If you use trunk (or httpd 2.3) you can use an block.
With 2.2 or below, you have to hack it with mod_rewrite
(or a script).

--
Nick Kew


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org