Edgewall Software

Changes between Version 10 and Version 11 of TracCgi


Ignore:
Timestamp:
Nov 9, 2005, 5:55:33 AM (18 years ago)
Author:
Matthew Good
Comment:

add info on multiple projects with CGI

Legend:

Unmodified
Added
Removed
Modified
  • TracCgi

    v10 v11  
    1111{{{
    1212ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi
     13}}}
    1314
    14 # Trac needs to know where the database is located
     15If you're using Trac with a single project set its location:
     16{{{
    1517<Location "/trac">
    1618  SetEnv TRAC_ENV "/path/to/projectenv"
     19</Location>
     20}}}
     21
     22Or to use multiple projects from a parent directory:
     23{{{
     24<Location "/trac">
     25  SetEnv TRAC_ENV_PARENT_DIR "/path/to/project/parent/dir"
    1726</Location>
    1827}}}
     
    7584Now, you'll need to enable authentication against the password file in the Apache configuration:
    7685{{{
    77 <Location "/cgi-bin/trac.cgi/login">
     86<Location "/trac/login">
    7887  AuthType Basic
    7988  AuthName "Trac"
     
    8392}}}
    8493
     94If you're hosting multiple projects you can use the same password file for all of them:
     95{{{
     96<LocationMatch "/trac/[^/]+/login">
     97  AuthType Basic
     98  AuthName "Trac"
     99  AuthUserFile /somewhere/trac.htpasswd
     100  Require valid-user
     101</LocationMatch>
     102}}}
     103
    85104For better security, it is recommended that you either enable SSL or at least use the “Digest” authentication scheme instead of “Basic”. Please read the [http://httpd.apache.org/docs/2.0/ Apache HTTPD documentation] to find out more.
    86105