Hey guys,<br><br>I&#39;m trying to configure trac with nginx. I&#39;m using nginx_auth_mysql to authenticate trac users against a mysql database so I have to use FCGI to call trac instead of a proxy pass to tracd. The problem I&#39;m having with this setup is that I have to add a location for each trac repository if I want them to work. I&#39;ve been trying to find a workaround for this. Here&#39;s what I have so far.<br>
<br>        server_name    <a href="http://trac.joejacobs.org">trac.joejacobs.org</a>;<br><br>        location ~ ^/(.*)/login {<br>            auth_mysql_realm &quot;Trac Login&quot;;<br>            auth_mysql_host &quot;localhost&quot;;<br>
            auth_mysql_user &quot;db_user&quot;;<br>            auth_mysql_password &quot;db_pass&quot;;<br>            auth_mysql_database &quot;db_name&quot;;<br>            auth_mysql_table &quot;db_user_table&quot;;<br>
            auth_mysql_password_column &quot;db_user_pass&quot;;<br>            auth_mysql_user_column &quot;db_user_name&quot;;<br>            auth_mysql_encryption_type &quot;md5&quot;;<br><br>            fastcgi_param       REMOTE_USER        $remote_user;<br>
            fastcgi_param       TRAC_ENV                /path/to/trac/repos/project;<br>            fastcgi_param       SCRIPT_NAME          /pytwit;<br>            include                 trac_fcgi.conf;<br>        }<br>
<br>        location ~ ^/(.*) {<br>            fastcgi_param       TRAC_ENV               /path/to/trac/repos/project;<br>            fastcgi_param       SCRIPT_NAME         /project;<br>            include                 trac_fcgi.conf;<br>
        }<br><br>the url for a repository will be <a href="http://trac.joejacobs.org/project">http://trac.joejacobs.org/project</a><br><br>I want the project name to be a variable. As you can see I&#39;ve tried placing the project path in brackets but that obviously doesn&#39;t work. What am I doing wrong here?<br>
<br>Cheers,<br>Joe Jacobs <br><a href="http://joejacobs.org/">http://joejacobs.org/</a><br>