Changes between Version 2 and Version 3 of TracStandalone
- Timestamp:
- Sep 27, 2014, 5:58:32 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracStandalone
v2 v3 168 168 === Generating Passwords Without Apache === 169 169 170 Basic Authorization can be accomplished via this [http:// www.4webhelp.net/us/password.php online HTTP Password generator]. Copy the generated password-hash line to the .htpasswd file on your system.170 Basic Authorization can be accomplished via this [http://aspirine.org/htpasswd_en.html online HTTP Password generator]. Copy the generated password-hash line to the .htpasswd file on your system. Note that Windows Python lacks the "crypt" module that is the default hash type for htpasswd ; Windows Python can grok MD5 password hashes just fine and you should use MD5. 171 171 172 172 You can use this simple Python script to generate a '''digest''' password file: … … 214 214 It is possible to use `md5sum` utility to generate digest-password file: 215 215 {{{ 216 $ printf "${user}:trac:${password}" | md5sum - >>user.htdigest 217 }}} 218 and manually delete " -" from the end and add "${user}:trac:" to the start of line from 'to-file'. 216 user= 217 realm= 218 password= 219 path_to_file= 220 echo ${user}:${realm}:$(printf "${user}:${realm}:${password}" | md5sum - | sed -e 's/\s\+-//') > ${path_to_file} 221 }}} 219 222 220 223 == Reference == … … 234 237 -b HOSTNAME, --hostname=HOSTNAME 235 238 the host name or IP address to bind to 236 --protocol=PROTOCOL http|scgi|ajp 239 --protocol=PROTOCOL http|scgi|ajp|fcgi 237 240 -q, --unquote unquote PATH_INFO (may be needed when using ajp) 238 --http10 use HTTP/1.0 protocol version (default)239 --http11 use HTTP/1.1 protocol version instead of HTTP/1.0241 --http10 use HTTP/1.0 protocol version instead of HTTP/1.1 242 --http11 use HTTP/1.1 protocol version (default) 240 243 -e PARENTDIR, --env-parent-dir=PARENTDIR 241 244 parent directory of the project environments … … 244 247 -r, --auto-reload restart automatically when sources are modified 245 248 -s, --single-env only serve a single project without the project list 246 }}} 249 -d, --daemonize run in the background as a daemon 250 --pidfile=PIDFILE When daemonizing, file to which to write pid 251 --umask=MASK When daemonizing, file mode creation mask to use, in 252 octal notation (default 022) 253 }}} 254 255 Use the -d option so that tracd doesn't hang if you close the terminal window where tracd was started. 247 256 248 257 == Tips ==