Just a little tribute to Antonio Puerta (1984-2007)…
Just a little tribute to Antonio Puerta (1984-2007)…
On today’s class we will configure our Cherokee web server to work with Trac :)
You need a system with trac, cherokee and apache-utils(htpasswd) installed (on Gentoo just emerge). We will use cherokee 0.5.6 (0.6.x is very stable so the config file is quite different). Remember to install Trac with FCGI support (on gentoo just USE=fcgi).
"/usr/lib/python2.4/site-packages/trac/web/fcgi_frontend.py" change "_fcgi.WSGIServer(dispatch_request).run()" to "_fcgi.WSGIServer(dispatch_request, bindAddress=("localhost", 8000)).run()"
# cp /usr/share/webapps/trac/0.10.3.1/hostroot/cgi-bin/trac.fcgi /var/www/localhost/cgi-bin/
Directory /trac/$PROJ {
Handler fcgi {
ErrorHandler on
CheckFile off
Server localhost:8000 {
Env TRAC_ENV "/var/lib/trac/$PROJ"
Interpreter "/var/www/localhost/cgi-bin/trac.fcgi"
}
}
}
Directory /trac/$PROJ/login {
Auth Basic {
Name "Trac auth"
Method htpasswd {
PasswdFile /etc/cherokee/trac.htpasswd
}
}
}
Request "^/trac/[^/]+/chrome/common/(.*)$" {
Handler redir {
Show Rewrite "/trac/chrome/common/$1"
}
}
Request "^/trac/[^/]+/login/chrome/common/(.*)$" {
Handler redir {
Show Rewrite "/trac/chrome/common/$1"
}
}
Directory /trac/chrome/common {
Handler file
DocumentRoot /usr/share/trac/htdocs/
}
I will explain a bit each section:
Remember to set perms on /var/lib/trac/$PROJ, to passwd and svn repos to user cherokee.
Now we have a fast and secure Trac system :)
Recent Comments