[Zope] mod_proxy static or dynamic?

Jason Wertz JWERTZ@dccc.edu
Wed, 02 Jul 2003 18:40:31 -0400


The proxy_module is loaded and RewriteEngine is on and working because
I'm currently rewriting other urls that work fine and the L and R
options work as expected.

I'm getting long timeouts though when I add the P to enable proxying =
and=20
nothing useful in the logs.

The apached mod_rewrite page says this about compiling in mod_proxy, I'm
not sure if it was easier to put it this way then explain how to compile
the module seperately.

http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule=20

'proxy|P' (force proxy) This flag forces the substitution part to be
internally forced as a proxy request and immediately (i.e., rewriting
rule processing stops here) put through the proxy module. You have to
make sure that the substitution string is a valid URI (e.g., typically
starting with http://hostname) which can be handled by the Apache proxy
module. If not you get an error from the proxy module. Use this flag to
achieve a more powerful implementation of the ProxyPass directive, to
map some remote stuff into the namespace of the local server.=20

Notice: To use this functionality make sure you have the proxy module
compiled into your Apache server program. If you don't know please check
whether mod_proxy.c is part of the ``httpd -l'' output. If yes, this
functionality is available to mod_rewrite. If not, then you first have
to rebuild the ``httpd'' program with mod_proxy enabled.

Thanks


Jason Wertz
Senior Technology Specialist / WebMaster
Delaware County Community College
ph: 610-325-2771
fax: 610-325-2820
http://learn.dccc.edu/~jason




>>> Jamie Heilman <jamie@audible.transient.net> 07/02/03 06:34PM >>>
Jason Wertz wrote:
> Redhat 7.2 with Apache 1.3.27 with mod_proxy compiled as a module.
> Here's the full line that's not working.
>=20
> RewriteRule ^/(.*) http://www.mysite.edu:8080/VirtualHostBase/http/www.my=
site.edu:80/VirtualHostRoot/$1 [L,P]

Did you remember to LoadModule the proxy_module?
Did you remember to toggle RewriteEngine on?

> The mod_proxy page says you need to have it compiled in statically
> to the server to work with rewrite rules, is this true...anybody
> ever have this same trouble?=20

It is not true, what is the URI to the page that claims that?

--=20
Jamie Heilman                   http://audible.transient.net/~jamie/=20
"...thats the metaphorical equivalent of flopping your wedding tackle=20
 into a lion's mouth and flicking his lovespuds with a wet towel, pure=20
 insanity..."						-Rimmer