John Hampton wrote:
> When using the original configuration for trac (no scriptalias),
> trying to login causes cherokee to segafult.
[..]
>
> Directory /cgi-bin/trac.cgi/login {
> Auth Basic {
> Name "Trac"
> Method htpasswd {
> PasswdFile /var/www/pacopablo.com/projects/conf/projectusers
> }
> }
> }
I have been thinking about it for a while..
The problem is that we are starting to use the Directory keyword in
a weird way. It is meant to be a configuration entry which define
configuration parameter of directory entries, but currently we are
using it to define properties of a certain request rather than its
original purpose.
I could write a patch to make it work, but IMO it is not the right
way to go. If we want to support that kind of functionality in the
server, it is okay, but we should not mess it up. ';-)
Do you guys want to propose how to implement it?
1nd idea: Use top level matches
====
Directory /cgi-bin {
Handler cgi {
Env TRAC_ENV "/var/www/projects/trac"
}
}
Request "/cgi-bin/trac.cgi/log*" {
Auth Basic {
Name "Trac"
Method htpasswd {
PasswdFile /var/www_passwords
}
}
}
====
2st idea: Use "Request" entries:
====
Directory /cgi-bin {
Handler cgi {
Env TRAC_ENV "/var/www/projects/trac"
}
Request /trac.cgi/login {
Auth Basic {
Name "Trac"
Method htpasswd {
PasswdFile /var/www_passwords
}
}
}
}
====
More ideas? Thoughts?
--
Greetings, alo.
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee