I'm very confused. If I attempt to move an apache rewrite rule from where it's referenced in 'startzap' (in the -c ) into conf/zap.conf, everything breaks. (Your browser sent a request that the server couldn't understand.) All I want to do is this: 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/ This works fine when I have this: -c "RewriteRule ^/Zope(.*) $dot/../Zope.cgi\$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]" in my startzap, and this: RewriteRule ^/dumbuser/(.*) /home/dumbuser/public_html/$1 in my zap.conf. However, I don't want to have to use http://myserver/Zope ... so I do this: -c "RewriteRule ^(.*) $dot/../Zope.cgi [etc etc etc] And then the zap.conf rewriterule stops working. Clues? Daniel Drucker
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
participants (1)
-
Daniel M. Drucker