You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Peter <ni...@gmail.com> on 2005/04/07 09:20:02 UTC
[users@httpd] Reverse Proxy with filtering using Apache2
Hi there,
currently I am trying to set up my local Apache as a reverse proxy
with filtering. The current settings are a RewriteRule to rewrite a
URL and then a second RewriteRule to use mod_rewrite's Proxy
Throughput feature.
However, I could not succeed in getting a fiter attached behind these
rules using mod_ext_filter. Is that possible at all? If yes, then how.
If not, how could I get the intended functionality to filter the
website from the proxy before sending to the client. (Note: the first
RewriteRule is definitely needed!).
If it's relevant: I am using Windows 2000 and Apache2 (2.0.52).
--
Best regards,
Peter
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Reverse Proxy with filtering using Apache2
Posted by Nick Kew <ni...@webthing.com>.
Peter wrote:
> Hi Nick,
>
> mod_publisher does not seem to work for me. I cannot dynamically give
> patterns like perl's or sed's regexes.
I don't think you told us exactly what you were trying to do, so that
was a shot in the dark. But you can use regexps in an MLRewriteRule,
if that's relevant.
--
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Reverse Proxy with filtering using Apache2
Posted by Peter <ni...@gmail.com>.
Hi Nick,
mod_publisher does not seem to work for me. I cannot dynamically give
patterns like perl's or sed's regexes. The problem on Win32 seems to
be a piping issue. The script and also a small C++ program I hacked in
work when run on command line. However, from Apache with
mod_ext_filter it does not work.
On 4/7/05, Peter <ni...@gmail.com> wrote:
> On Apr 7, 2005 10:23 AM, Nick Kew <ni...@webthing.com> wrote:
> > > If not, how could I get the intended functionality to filter the
> > > website from the proxy before sending to the client.
> >
> > What is your intended functionality? Would mod_publisher or any of
> > its lesser siblings (http://apache.webthing.com/) do the job for you?
> Have not tried. Will this module stack fine with mod_rewrite on mod_proxy?
>
> Will try to compile it this afternoon.
>
> > > If it's relevant: I am using Windows 2000 and Apache2 (2.0.52).
> >
> > Could be relevant. Bear in mind that even if you do get it to work,
> > it'll be a huge overhead. An ext_filter is an external program
> > (like CGI with mod_cgi), and will be slow on anything but unix+prefork.
> > See the discussion on the mod_cgid page for how apache deals with
> > this in CGI - but there's no equivalent for ext_filter.
> It's only for local use and it's currently only one site being routed
> through the proxy. Apache runs anyway to have a local copy of my
> website available at any time, so this is really no drawback to me ;)
>
> Thanks for pointing this out to me. Will come back to give feedback on
> whether and how it works - for the list to know.
>
> Peter.
>
--
Best regards,
Peter
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Reverse Proxy with filtering using Apache2
Posted by Peter <ni...@gmail.com>.
On Apr 7, 2005 10:23 AM, Nick Kew <ni...@webthing.com> wrote:
> > If not, how could I get the intended functionality to filter the
> > website from the proxy before sending to the client.
>
> What is your intended functionality? Would mod_publisher or any of
> its lesser siblings (http://apache.webthing.com/) do the job for you?
Have not tried. Will this module stack fine with mod_rewrite on mod_proxy?
Will try to compile it this afternoon.
> > If it's relevant: I am using Windows 2000 and Apache2 (2.0.52).
>
> Could be relevant. Bear in mind that even if you do get it to work,
> it'll be a huge overhead. An ext_filter is an external program
> (like CGI with mod_cgi), and will be slow on anything but unix+prefork.
> See the discussion on the mod_cgid page for how apache deals with
> this in CGI - but there's no equivalent for ext_filter.
It's only for local use and it's currently only one site being routed
through the proxy. Apache runs anyway to have a local copy of my
website available at any time, so this is really no drawback to me ;)
Thanks for pointing this out to me. Will come back to give feedback on
whether and how it works - for the list to know.
Peter.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Reverse Proxy with filtering using Apache2
Posted by Nick Kew <ni...@webthing.com>.
Peter wrote:
> However, I could not succeed in getting a fiter attached behind these
> rules using mod_ext_filter. Is that possible at all?
In theory, yes. In practice, there are some gotchas, and you're not
the first to report problems. Insufficient information to say more.
> If not, how could I get the intended functionality to filter the
> website from the proxy before sending to the client.
What is your intended functionality? Would mod_publisher or any of
its lesser siblings (http://apache.webthing.com/) do the job for you?
> If it's relevant: I am using Windows 2000 and Apache2 (2.0.52).
Could be relevant. Bear in mind that even if you do get it to work,
it'll be a huge overhead. An ext_filter is an external program
(like CGI with mod_cgi), and will be slow on anything but unix+prefork.
See the discussion on the mod_cgid page for how apache deals with
this in CGI - but there's no equivalent for ext_filter.
--
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org