Hey guys,<br><br>I'm trying to configure trac with nginx. I'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'm having with this setup is that I have to add a location for each trac repository if I want them to work. I've been trying to find a workaround for this. Here'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 "Trac Login";<br> auth_mysql_host "localhost";<br>
auth_mysql_user "db_user";<br> auth_mysql_password "db_pass";<br> auth_mysql_database "db_name";<br> auth_mysql_table "db_user_table";<br>
auth_mysql_password_column "db_user_pass";<br> auth_mysql_user_column "db_user_name";<br> auth_mysql_encryption_type "md5";<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've tried placing the project path in brackets but that obviously doesn'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>