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
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 )
"JHBD" == JXrn Helge B Dahl <jornd@falch.net> writes:
JHBD> On a second thought: What I _really_ want (I think, unless JHBD> someone tells me differently :-) ) is a conditional JHBD> ProxyPass, to tell apache to redirect everything _unless_ JHBD> the URI is /static (or something). The ugly solution, until you find a clean one, is to have a second apache process :-), and the first proxy-forwards to either Zope or the second Apache. (I'm doing something like that for our home server, so I'm intrigued as to whether you can provide a clean solution...). best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics BlindGlobe Networks (home/default) rossini@blindglobe.net UW Biostat/Center for AIDS Research rossini@u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini@scharp.org FHCRC: M/Tu: 206-667-7025 (fax=4812) | Voicemail is pretty sketchy CFAR: W/F: 206-731-3647 (fax=3694) | Email is far better than phone UW: Th/F: 206-543-1044 (fax=3286) | Change last 4 digits of phone for fax
participants (3)
-
jornd@falch.net -
Phil Harris -
rossini@blindglobe.net