Edgewall Software

Changes between Version 50 and Version 51 of TracMultipleProjects


Ignore:
Timestamp:
May 24, 2005, 1:27:07 PM (19 years ago)
Author:
melson
Comment:

Added alt. method for multiple projects.

Legend:

Unmodified
Added
Removed
Modified
  • TracMultipleProjects

    v50 v51  
    44
    55== URL Rewriting ==
     6
    67
    78Both ways use Apache's URL rewriting module : {{{mod_rewrite}}}. You have to make sure you have it loaded or compiled in Apache.
     
    209210Here you are ! Don't forget to ''chown'' these files to {{{www-data}}}, and it should work !
    210211
     212=== Alternative method for hosting multiple projects in one domain ===
     213
     214Another way to support multiple projects is to add the following to the Apache 2 config file, per project (myproj in this case):
     215
     216{{{
     217ScriptAlias /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
     231This is in addition to the global line:
     232
     233{{{
     234Alias /trac "/usr/share/trac/htdocs"
     235}}}
     236
     237If you want different users per project, just edit the !AuthUserFile line for each one.
    211238
    212239-------