[Zope] Apache/VHM _and_ AccessRule at the same time

Dylan Reinhardt zope@dylanreinhardt.com
16 Jun 2003 10:02:02 -0700


I'll take a crack at this.

On Sun, 2003-06-15 at 17:33, Danny W. Adair wrote:
> Here's my configuration:
> 
> --------------------------
> Apache
> --------------------------
> <VirtualHost admin.mydomain.com:80>
> RewriteEngine On
> ProxyRequests On

First, you do NOT want ProxyRequests on for what you're doing here. 
This directive has nothing to do with being a "reverse" proxy, it is a
directive for configuring Apache as an outbound HTTP proxy.  Bad idea,
unless that's what you're intending to do.


> customer_id = stack.pop()

I suspect this is your problem.  

I don't have time to trace out the whole thing, but you're popping the
last item off the traversal stack without (it appears) doing any
checking to see if the last item is actually what you think it is.  

You may want to check if stack[-1] matches a customer_id before popping
it off or step backward through your stack looking for a value that does
match.

HTH,

Dylan