I'm trying to set up per-user trac instances, using fcgid. The problem is that trac requires rw access to the trac instance, so I need the fcgi process to run under the respective user.
I have the suexec, fcgid, and userdir Apache modules installed (on Debian). I put up vhost directive
ScriptAliasMatch /~(.*)/trac /home/$1/public_html/trac.fcgi
This works insofar as trac.fcgi is run, but unfortunately, under the www-data user. How can I make fcgid launch it under the $1 user?