[Zope] Help with RewriteRule?
addyd@unk.edu
addyd@unk.edu
Tue, 5 Mar 2002 11:36:28 -0600
I'm not very comfortable with RewriteRules and can't find my exact set of
circumstances described anywhere.
I'm working mainly with the Quickie Apache + Zope setup using VHM found at:
http://www.zope.org/Members/Jace/apache-vhm
and Chapter 10 of the at:
http://www.zopeonarope.com/ch8-10available
(thanks Steve!)
Would someone please help me with the RewriteRules(s) I need for the
following:
The linux server I have installed Zope (2.3.3) on has Apache running all
static content with LOTS of virtual hosts.
I need Zope content for only ONE of the virtual hosts
(www.myvirtualhost.com)
and I would like Zope proxied only if "/marketplace" is the first directory
in the path.
(www.myvirtualhost.com/marketplace should return the index_html object in
Zope's /Marketplace folder).
All other URLs for www.myvirtualhost.com should still be static content
from apache.
I have installed a Virtual Host Monster in the Zope root.
I believe that it should look like the following (all on one line):
RewriteRule ^/marketplace(.*)
http://www.myvirtualhost.com:8080/VirtualHostBase/http/www.myvirtualhost.com:80/Marketplace/VirtualHostRoot/#1
[P]
Is that correct?
Do I need another rule to get all other content passed straight through, or
will it only rewrite URLs that match the one above? If I need another rule,
I need some more help.
: \
Thanks in advance for any assistance.
Darren Addy
Web Specialist
Information Technology Services
University of Nebraska at Kearney