Changes between Version 24 and Version 25 of TracFastCgi
- Timestamp:
- Mar 1, 2006, 12:48:29 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracFastCgi
v24 v25 83 83 }}} 84 84 Note that field values are different. 85 85 {{{ 86 #!html 87 <p style="background: #fdc; border: 2px solid #d00; font-style: italic; padding: 0 .5em; margin: 1em 0;"> 88 <strong>Note from c00i90wn:</strong> It's very important the order on which server.modules are loaded, if mod_auth is not loaded <strong>BEFORE</strong> mod_fastcgi, then the server will fail to authenticate the user. 89 </p> 90 }}} 86 91 For authentication you should enable mod_auth in lighttpd.conf 'server.modules', select auth.backend and auth rules: 87 92 {{{ … … 152 157 }}} 153 158 The technique can be easily adapted for use with multiple projects by creating aliases for each of them, and wrapping the fastcgi.server declarations inside conditional configuration blocks. 159 Also there is another way to do handle multiple projects and it's to use TRAC_ENV_PARENT_DIR instead of trac env and use global auth, let's see an example: 160 {{{ 161 alias.url = ( "/trac/" => "/path/to/trac/htdocs/" ) 162 163 fastcgi.server += ("/projects" => 164 ("trac" => 165 ( 166 "socket" => "/tmp/trac.sock", 167 "bin-path" => "/path/to/cgi-bin/trac.fcgi", 168 "check-local" => "disable", 169 "bin-environment" => 170 ("TRAC_ENV_PARENT_DIR" => "/path/to/parent/dir/of/projects/" ) 171 ) 172 ) 173 ) 174 175 auth.backend = "htpasswd" 176 auth.backend.htpasswd.userfile = "/path/to/unique/htpassword/file/trac.htpasswd" 177 $HTTP["url"] =~ "^/projects/.*/login$" { 178 auth.require = ("/" => 179 ( 180 "method" => "basic", 181 "realm" => "trac", 182 "require" => "valid-user" 183 ) 184 ) 185 } 186 }}} 154 187 155 188 Changing date/time format also supported by lighttpd over environment variable LC_TIME