[Zope] Apache in front of ZServer

Phil Harris phil.harris@zope.co.uk
Tue, 24 Oct 2000 14:08:03 +0100


Jorn,

I'm no Apache GrandMaster but couldn't you use the [p] option of a
RewriteRule to make it proxy if the url matches a pattern:

RewriteEngine on
RewriteRule !^(/static/.*) http://myserver.com:8080$1 [p,l]

Or something along those lines.

hth

Phil
phil.harris@zope.co.uk

----- Original Message -----
From: "Jørn Helge B. Dahl" <jornd@falch.net>
To: <zope@zope.org>
Sent: Tuesday, October 24, 2000 1:40 PM
Subject: Re: [Zope] Apache in front of ZServer


> * jornd@falch.net (JXrn Helge B. Dahl)
>
> | | for the other part of serving static content, it really depends what
you
> | | want but here are two ways to do it.
> | |
> | | 1.    use the LocalFileSystem product,
> | |
http://www.zope.org/Products/Members/jfarr/Products/LocalFS/LocalFS-0.9.6.tg
> | | z
> |
> | That I already do, so that one is okay.
> |
> | | 2.    use Apache to intercept calls to a specific dir before passing
it onto
> | | Zope, e.g. use a RewriteRule.
> |
> | Yup, this is what I need. I think was being unclear about what I really
> | -wanted: I want to still be able to use php and such thing, even if I
> | serve Zope from root. So the RewriteRule does the trick?
>
> On a second thought: What I _really_  want (I think, unless someone
> tells me differently :-) ) is a conditional ProxyPass, to tell apache
> to redirect everything _unless_ the URI is /static (or something).
>
> But this is probably something for apache geeks.
>
> Thanks anyway.
> --
> Jørn Helge B. Dahl
> http://falch.net
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )