Edgewall Software

Changes between Version 12 and Version 13 of TracStandalone


Ignore:
Timestamp:
Oct 31, 2005, 4:08:07 PM (18 years ago)
Author:
Christopher Lenz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v12 v13  
    11= Tracd =
    22
    3 Tracd is a lightweight stand-alone Trac server. In most cases it's easier to setup and runs faster than trac.cgi.
    4 
     3Tracd is a lightweight standalone Trac web server. In most cases it's easier to setup and runs faster than the [wiki:TracCgi CGI script].
    54
    65== Pros ==
    76
    87 * Fewer dependencies: You don't need to install apache or any other web-server.
    9  * Fast: Should be as fast as the TracModPython version (much faster than the cgi).
     8 * Fast: Should be as fast as the [wiki:TracModPython mod_python] version (and much faster than the [wiki:TracCgi CGI]).
    109
    1110== Cons ==
    1211
    13  * Less features: Tracd implements a very simple web-server and is not as configurable as apache.
    14  * Only htdigest authentication: Tracd can currently only authenticate users against apache-htdigest files.
    15  * No native https support: [http://www.rickk.com/sslwrap/ sslwrap] can be used instead,
     12 * Less features: Tracd implements a very simple web-server and is not as configurable as Apache HTTPD.
     13 * No native HTTPS support: [http://www.rickk.com/sslwrap/ sslwrap] can be used instead,
    1614   or [http://lists.edgewall.com/archive/trac/2005-August/004381.html STUNNEL].
    1715
     
    3028different projects unique. So if you use /project1/path/to and /project2/path/to, you will only see the second project.
    3129
    32 With htdigest authentication. The file /tmp/users.htdigest contain user accounts for project1 with the realm "mycompany.com".
     30== Using Authentication ==
     31
     32Tracd provides support for both Basic and Digest authentication. The default is to use Digest; to use Basic authentication, replace `--auth` with `--basic-auth` in the examples below, and omit the realm.
     33
     34If the file `/path/to/users.htdigest` contain user accounts for project1 with the realm "mycompany.com", you'd use the following command-line to start tracd:
    3335{{{
    34  $ tracd -p 8080 --auth project1,/tmp/users.htdigest,mycompany.com /path/to/project1
     36 $ tracd -p 8080 --auth project1,/path/to/users.htdigest,mycompany.com /path/to/project1
    3537}}}
    36 htdigest authentication can also be used for more than one project.
    37 The digest file can be shared:
     38''Note that the project “name” passed to the `--auth` option is actually the base name of the project environment directory.""
     39
     40Of course, the digest file can be be shared so that it is used for more than one project:
    3841{{{
    3942 $ tracd -p 8080 \
    40    --auth project1,/tmp/users.htdigest,mycompany.com \
    41    --auth project2,/tmp/users.htdigest,mycompany.com \
     43   --auth project1,/path/to/users.htdigest,mycompany.com \
     44   --auth project2,/path/to/users.htdigest,mycompany.com \
    4245   /path/to/project1 /path/to/project2
    4346}}}
    4447
    45 == Tracd on Windows ==
     48== Generating Passwords Without Apache ==
    4649
    47 tracd also works on Windows.
    48 But on that platform, the sensitivity on multithreading issues is high,
    49 and you ''might'' have problems (i.e. crashes of the Python interpreter).
    50 If this happens, you can force tracd to operate in single-threaded mode:
    51 {{{
    52 #!text/x-diff
    53 Index: trac/web/standalone.py
    54 ===================================================================
    55 --- trac/web/standalone.py      (revision 1862)
    56 +++ trac/web/standalone.py      (working copy)
    57 @@ -124,7 +124,7 @@
    58          return auth['username']
    59 
    60 
    61 -class TracHTTPServer(ThreadingMixIn, HTTPServer):
    62 +class TracHTTPServer(HTTPServer):
    63 
    64      projects = None
    65 }}}
    66 
    67 Please also report any such issue, as they are believed to be fixed by now.
    68 
    69 
    70 == Generating passwords without Apache ==
    71 
    72 If you don't have Apache available, you can use this Python script to generate your passwords (code borrowed heavily from #845):
     50If you don't have Apache available, you can use this simple Python script to generate your passwords:
    7351
    7452{{{
     
    9674
    9775----
    98 See also: [source:trunk/README.tracd#latest README.tracd], TracGuide, TracInstall, TracModPython
     76See also: TracInstall, TracCgi, TracModPython, TracGuide