This took me ages to find so I’d better document it here. When switching to nginx from lighttpd I ran into some problems with the trac instance that was running through fcgi. After following most of the tutorials around to set it up, all looked fine. Then I ran into issue 9755.

To solve it I first tried to go the proxy-standalone-trac route, which has an unquote option to cope with this issue. But in that case my authentication through nginx would never work. In the end I went digging in the trac source code and found the FlupMiddleware class that is used when running in “unquote” mode for tracd. After some more digging I found that in Trac 0.12.2 this is integrated in the fcgi_frontend.py script that is distributed with Trac. 

So here it comes…To activate the unquoting just set the environment variable TRAC_USE_FLUP to true (actually anything but 0, no or false will do) and we’re golden.

Hope that ‘ll save you some hours, like I wasted mine :)