| 261 | |
| 262 | |
| 263 | ---- |
| 264 | '''User Contribution (using fastcgi)''':[[BR]] |
| 265 | * Create a project directory and put your environments in it |
| 266 | * Add "ScriptAlias /projects /var/www/localhost/cgi-bin/trac.fcgi" |
| 267 | * Add "FastCgiConfig -initial-env TRAC_ENV_PARENT_DIR=/var/www/localhost/htdocs/trac/projects/" |
| 268 | * Add the <Location "/projects/projectname/login"> directive as mentioned above for each project (I have two Location directives for each project, one for /projects/projectname/login and one for /cgi-bin/trac.fcgi/projectname/login) |
| 269 | * Add the following mod_rewrite rules: |
| 270 | {{{ RewriteEngine on |
| 271 | RewriteRule ^/cgi-bin/trac.fcgi/projects$ /projects/projectname [R,L,NS] |
| 272 | }}} |
| 273 | |
| 274 | Strangely enough, the one rewrite rule for just one project gets it working for both my projects. I'm not sure what that's all about but hey it works. |
| 275 | |