If you have ever had to setup trac for hosting multiple projects using the trac_env_parent_dir option you’ll know that mod_wsgi is the best option for serving. I couldn’t find a simple .wsgi file that would work for me.
Below is my wsgi file, where /var/www/trac the the parent directory where all the trac projects live in. Its super simple but it works :)
I used this in my new trac + bzr hosting service http://bzr.bz