You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Martin A. Langhoff" <ml...@scim.net> on 2000/05/01 18:31:26 UTC

2 server setup w/mod_proxy with a per-filename filter

hi,

    I'm trying to implement a one light + one fat apache server setup
and I'm stumbling with the lack of an option to proxy-pass based on
filename. It seems that mod_proxy is designed to handle complete
hostnames and directories, and I'm wanting it to proxy everything that
looks ~ \.pl$

    The only workaround I foresee might be using mod_rewrite, but I'd
rather not :), does anyone have a better idea? Or maybe a few examples
of mod_rewrite use that work in this case?

    Of course, the reason of my woes is that I started designing with
only one 'fat' httpd, and my websites have *.pl and *.ehtml files (for
Registry scripts and Embperl files) intermingled within the directory
structure, not separated. And redesigning a dozen websites is not
practical right now :(

martin

--                                                         --
To understand recursion, one must first understand recursion.
--                                                         --
    - Martin Langhoff @ S C I M  Multimedia Technology -
      - http://www.scim.net      | God is real until  -
      - mailto:mlangho@scim.net  | declared integer   -



Re: 2 server setup w/mod_proxy with a per-filename filter

Posted by Vivek Khera <kh...@kciLink.com>.
>>>>> "MAL" == Martin A Langhoff <ml...@scim.net> writes:

MAL>     The only workaround I foresee might be using mod_rewrite, but I'd
MAL> rather not :), does anyone have a better idea? Or maybe a few examples
MAL> of mod_rewrite use that work in this case?

Why not?  It really is your only option here.

What I do is explicitly handle most types locally on the front end,
then pass along anything else to the backend.  This works since I
control all content and file names.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-301-545-6996
GPG & MIME spoken here            http://www.khera.org/~vivek/

Re: 2 server setup w/mod_proxy with a per-filename filter

Posted by Mads Toftum <ma...@toftum.dk>.
On Mon, May 01, 2000 at 01:31:26PM -0300, Martin A. Langhoff wrote:
>     The only workaround I foresee might be using mod_rewrite, but I'd
> rather not :), does anyone have a better idea? Or maybe a few examples
> of mod_rewrite use that work in this case?

mod_rewrite is quite nice for such a setup - I usually end up with a mix
of proxy and rewrite to get the job done.
Lots of examples are available in http://www.apache.org/docs/misc/rewriteguide.html


vh

Mads Toftum
-- 
`Darn it, who spiked my coffee with water?!' - lwall

Re: 2 server setup w/mod_proxy with a per-filename filter

Posted by mo...@cinemaspace.berkeley.edu.

On Mon, 1 May 2000, Martin A. Langhoff wrote:

> hi,
> 
>     I'm trying to implement a one light + one fat apache server setup
> and I'm stumbling with the lack of an option to proxy-pass based on
> filename. It seems that mod_proxy is designed to handle complete
> hostnames and directories, and I'm wanting it to proxy everything that
> looks ~ \.pl$
> 
>     The only workaround I foresee might be using mod_rewrite, but I'd
> rather not :), does anyone have a better idea? Or maybe a few examples
> of mod_rewrite use that work in this case?
> 
>     Of course, the reason of my woes is that I started designing with
> only one 'fat' httpd, and my websites have *.pl and *.ehtml files (for
> Registry scripts and Embperl files) intermingled within the directory
> structure, not separated. And redesigning a dozen websites is not
> practical right now :(

http://www.engelschall.com/pw/apache/rewriteguide/





Re: 2 server setup w/mod_proxy with a per-filename filter

Posted by Matt Carothers <ma...@telepath.com>.

On Mon, 1 May 2000, Martin A. Langhoff wrote:

> hi,
> 
>     I'm trying to implement a one light + one fat apache server setup
> and I'm 
..
> wanting it to proxy everything that looks ~ \.pl$

See
http://forum.swarthmore.edu/epigone/modperl/mimzhingleh/Pine.A41.3.96.1000415211412.23572D-100000@ilx374.iil.intel.com
for some mod_rewrite examples from a couple of weeks ago on this list.

- Matt