[Zope] rewrite rules

Daniel M. Drucker dmd@3e.org
Thu, 3 Jun 1999 18:00:27 -0400 (EDT)


On Thu, 3 Jun 1999, Daniel M. Drucker wrote:

> http://myserver/ is the root of zope.
> http://myserver/whatever/blah is processed by zope.
> EVERYTHING is processed by zope -- except for one thing:
> http://myserver/dumbuser/   which goes to /home/dumbuser/public_html/

I solved this by moving the Rewrite stuff into startzap and out of
zap.conf entirely, using this:


-c "RewriteRule ^/dumbuser/(.*) /home/dumbuser/public_html/\$1 [l]" \
-c "RewriteCond %{HTTP:Authorization} ^(.*)" \
-c "RewriteRule ^(.*) $dot/../Zope.cgi\$1  [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]"


It was the all-important [l] tag that I forgot about, which tells the
Rewrite engine to not process any more rules.

Daniel