List Info

Thread: Wrong Request matching




Wrong Request matching
user name
2006-02-26 15:42:56
Hi!

How should I use "Request" clause to match _all_
URL string from
beginning to the end?

Here is my working configuration:

Directory /trac-cgi {
                Handler cgi {
                        Env     TRAC_ENV_PARENT_DIR    
"/var/lib/trac"
                }
                DocumentRoot /usr/share/trac/cgi-bin/
}

Request "^/trac.cgi/.*/login$" {
                Auth Basic {
                       Name "Trac projects"
                       Method htpasswd {
                                PasswdFile
/etc/cherokee/htpasswd
                       }
                }
}

If I query http://
localhost/trac-cgi/trac.cgi/test/login URL,
cherokee gives me Authentication form.

As you can see, cherokee thinks that Request queries begin
beyond previously specified Directory
("/trac-cgi").

I.e.
Request "^/trac-cgi/trac.cgi/.*/login$"
doesn't work, because one more leading /trac-cgi is
assumed.

Have I missed something or it is desired behaviour?
And how to redirect queries from /trac-cgi to
/trac-cgi/trac.cgi
in this case?
_______________________________________________
Cherokee mailing list
Cherokee0x50.org
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )