Alvaro Lopez Ortega wrote:
I have been trying to check the problem that John Hampton reported
about the Trac and Cherokee. I'm glad to say, it is now sorted out.
W00T! :)
I have also uploaded a beta version of the next release with those
changes. I know some of you have problems compiling Cherokee from
the SVN, so it might be handy for you:
http://www.alobbs.com/tmp/cherokee-0.4.29b1.tar.gz
I gave it a spin and it works nicely. Thanks also for the tar ball, it
did make the whole compilation step easier as I don't have the gnutls
dev package installed.
<snip configuration>
I was able to get trac working by following your config. However, when
I tried to modify it a bit and use the Scriptalias parameter of the cgi
handler, it borked again.
Here are the relevent parts of my configuration:
Directory /projects/est {
Handler cgi {
ScriptAlias /usr/share/trac/cgi-bin/trac.cgi
Env TRAC_ENV "/var/www/pacopablo.com/projects/trac/est"
Env SCRIPT_NAME "/projects/est"
}
}
Directory /projects/est/chrome/common {
Handler common
DocumentRoot /usr/share/trac/htdocs
}
Directory /projects/est/login {
Auth Basic {
Name "EST Login"
Method htpasswd {
PasswdFile /var/www/pacopablo.com/projects/conf/projectusers
}
}
}
When I view the main page (http:pacopablo.com:8080/projects/est), it
works just fine. However, if I visit any links, then it gets messed up
because of paths.
Here is what trac receives:
11:02:10 Trac[main] INFO: req.cgi_location = /projects/est/newticket
11:02:10 Trac[main] INFO: req.path_info =
11:02:10 Trac[main] INFO: req.method = GET
11:02:10 Trac[main] INFO: req.remote_addr = 1.2.3.4
11:02:10 Trac[main] INFO: req.remote_user =
11:02:10 Trac[main] INFO: req.server_name = pacopablo.com
11:02:10 Trac[main] INFO: req.server_port = 8080
And because of the missing path_info and messed up cgi_location (which
is SCRIPT_NAME) it screws up the paths in the html:
<link rel="stylesheet"
href="/projects/est/newticket/chrome/common/css/trac.css" type="text/css" />
The "newticket" shouldn't be in that path. Anyway, I'm wondering if I'm
using scriptalias properly or if there is a better way to set it up. I
don't really like "trac.cgi" in the URL, so I'm trying to use a
scriptalias as suggested in the Trac documentation:
http://projects.edgewall.com/trac/wiki/TracCgi (though it's for apache)
Thanks for the help.
-John
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee