Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Restrict Proxy by method

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


aaron at daltons

Oct 24, 2009, 5:18 AM

Post #1 of 2 (261 views)
Permalink
Restrict Proxy by method

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 <Limit>, but that
does not work. I would appreciate any assistance.

<Location /fs>
<Limit GET>
ProxyPass http://backend/fs
ProxyPassReverse http://backend/fs
</Limit>
</Location>

Thanks for your time!
Aaron


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


nick at webthing

Oct 24, 2009, 5:37 AM

Post #2 of 2 (224 views)
Permalink
Re: Restrict Proxy by method [In reply to]

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
> <Limit>, but that does not work. I would appreciate any assistance.
>
> <Location /fs>
> <Limit GET>
> ProxyPass http://backend/fs
> ProxyPassReverse http://backend/fs
> </Limit>
> </Location>

Won't work. <Limit> isn't a general-purpose container.

If you use trunk (or httpd 2.3) you can use an <If "..."> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.