| 212 | === Alternative method for hosting multiple projects in one domain === |
| 213 | |
| 214 | Another way to support multiple projects is to add the following to the Apache 2 config file, per project (myproj in this case): |
| 215 | |
| 216 | {{{ |
| 217 | ScriptAlias /myproj / |
| 218 | |
| 219 | <Location "/myproj"> |
| 220 | SetEnv TRAC_ENV "/var/trac/myproj" |
| 221 | </Location> |
| 222 | |
| 223 | <Location "/myproj/login"> |
| 224 | AuthType basic |
| 225 | AuthName "trac" |
| 226 | AuthUserFile "/var/svn/svn-auth-file" |
| 227 | Require valid-user |
| 228 | </Location> |
| 229 | }}} |
| 230 | |
| 231 | This is in addition to the global line: |
| 232 | |
| 233 | {{{ |
| 234 | Alias /trac "/usr/share/trac/htdocs" |
| 235 | }}} |
| 236 | |
| 237 | If you want different users per project, just edit the !AuthUserFile line for each one. |