Changes between Version 10 and Version 11 of TracCgi
- Timestamp:
- Nov 9, 2005, 5:55:33 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracCgi
v10 v11 11 11 {{{ 12 12 ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi 13 }}} 13 14 14 # Trac needs to know where the database is located 15 If you're using Trac with a single project set its location: 16 {{{ 15 17 <Location "/trac"> 16 18 SetEnv TRAC_ENV "/path/to/projectenv" 19 </Location> 20 }}} 21 22 Or to use multiple projects from a parent directory: 23 {{{ 24 <Location "/trac"> 25 SetEnv TRAC_ENV_PARENT_DIR "/path/to/project/parent/dir" 17 26 </Location> 18 27 }}} … … 75 84 Now, you'll need to enable authentication against the password file in the Apache configuration: 76 85 {{{ 77 <Location "/ cgi-bin/trac.cgi/login">86 <Location "/trac/login"> 78 87 AuthType Basic 79 88 AuthName "Trac" … … 83 92 }}} 84 93 94 If 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 85 104 For 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. 86 105