I came across a strange behavior of mod_rewrite while using with zope.
Although it is not a zope question, I was wondering if any of you have
run into this. We are using mod_rewrite to redirect the users to one of
the zope sites of a Zeo cluster.
The directive RewriteMap has unexpected behavior when it is used to
define more than one map with same map name in diffrent places. Normally
all the directives within a tag applies only to that tag.
RewriteMap map rnd:/etc/httpd/conf/foomap.txt
RewriteMap map rnd:/etc/httpd/conf/barmap.txt
The above is expected to work. However ModRewrite, does not read the map
file foomap.txt or barmap.txt everytime it needs it and it caches the
results after the first time it reads for faster operation.
The problem is the cache treats both the file as the same since they
have the same name! Hence if you visit foo.com first, the data stored in
foomap.txt is returned from the cache next time you visit foo.com or
bar.com. This causes apache to redirect into the wrong zope site.
Has anyone else experienced similar problems ?
Open minds' Open Solutions
Plano, Texas, USA
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -