Changes between Version 2 and Version 3 of TracStandalone


Ignore:
Timestamp:
Sep 27, 2014, 5:58:32 PM (10 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v2 v3  
    168168=== Generating Passwords Without Apache ===
    169169
    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.
     170Basic 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.
    171171
    172172You can use this simple Python script to generate a '''digest''' password file:
     
    214214It is possible to use `md5sum` utility to generate digest-password file:
    215215{{{
    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'.
     216user=
     217realm=
     218password=
     219path_to_file=
     220echo ${user}:${realm}:$(printf "${user}:${realm}:${password}" | md5sum - | sed -e 's/\s\+-//') > ${path_to_file}
     221}}}
    219222
    220223== Reference ==
     
    234237  -b HOSTNAME, --hostname=HOSTNAME
    235238                        the host name or IP address to bind to
    236   --protocol=PROTOCOL   http|scgi|ajp
     239  --protocol=PROTOCOL   http|scgi|ajp|fcgi
    237240  -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.0
     241  --http10              use HTTP/1.0 protocol version instead of HTTP/1.1
     242  --http11              use HTTP/1.1 protocol version (default)
    240243  -e PARENTDIR, --env-parent-dir=PARENTDIR
    241244                        parent directory of the project environments
     
    244247  -r, --auto-reload     restart automatically when sources are modified
    245248  -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
     255Use the -d option so that tracd doesn't hang if you close the terminal window where tracd was started.
    247256
    248257== Tips ==