Hi.

I'm trying to get a handler to match only PHP files in a web-directory.  The
directory doesn't exist on the filesystem, and an alternate doc root is
specified in the config.

I'm having issues using AND extension matching in combination with a web
directory rule.

As a test, I tested the following configuration.  I configured this in the
admin interface, but here's the relevent snippet.

vserver!70!rule!500!match = and
vserver!70!rule!500!match!left = directory
vserver!70!rule!500!match!left!directory = /admin
vserver!70!rule!500!match!left!final = 1
vserver!70!rule!500!match!right = not
vserver!70!rule!500!match!right!right = extensions
vserver!70!rule!500!match!right!right!extensions = png

I would expect this to match all requests like ^/admin.* that don't have
filetype of png.

I would expect that '/admin/index.php' would be matched by this rule.  It is
not.

If I take out the extensions != png clause this works, but all my images are
served through the PHP interpreter.

I tried using a regex to match as well and that also fails to match.

Thanks,

Ryan
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to