Changes between Version 1 and Version 2 of TracStandalone


Ignore:
Timestamp:
Jan 30, 2006, 11:09:16 PM (19 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v1 v2  
    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
     
    2624 $ tracd -p 8080 /path/to/project1 /path/to/project2
    2725}}}
    28 With htdigest authentication. The file /tmp/users.htdigest contain user accounts for project1 with the realm "mycompany.com".
     26
     27You can't have the last portion of the path identical between the projects since that's how trac keeps the URLs of the
     28different projects unique. So if you use /project1/path/to and /project2/path/to, you will only see the second project.
     29
     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:
    2935{{{
    30  $ 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
    3137}}}
    32 htdigest authentication can also be used for more than one project.
    33 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:
    3441{{{
    35  $ tracd -p 8080
    36    --auth project1,/tmp/users.htdigest,mycompany.com
    37    --auth project2,/tmp/users.htdigest,mycompany.com
     42 $ tracd -p 8080 \
     43   --auth project1,/path/to/users.htdigest,mycompany.com \
     44   --auth project2,/path/to/users.htdigest,mycompany.com \
    3845   /path/to/project1 /path/to/project2
    3946}}}
    4047
    41 == Tracd on Windows ==
     48== Generating Passwords Without Apache ==
    4249
    43 tracd also works on Windows.
    44 But on that platform, the sensitivity on multithreading issues is high,
    45 and you ''might'' have problems (i.e. crashes of the Python interpreter).
    46 If this happens, you can force tracd to operate in single-threaded mode:
    47 {{{
    48 #!text/x-diff
    49 Index: trac/web/standalone.py
    50 ===================================================================
    51 --- trac/web/standalone.py      (revision 1862)
    52 +++ trac/web/standalone.py      (working copy)
    53 @@ -124,7 +124,7 @@
    54          return auth['username']
    55 
    56 
    57 -class TracHTTPServer(ThreadingMixIn, HTTPServer):
    58 +class TracHTTPServer(HTTPServer):
    59 
    60      projects = None
    61 }}}
    62 
    63 Please also report any such issue, as they are believed to be fixed by now.
    64 
    65 
    66 == Generating passwords on Windows ==
    67 
    68 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:
    6951
    7052{{{
     
    9274
    9375----
    94 See also: [source:trunk/README.tracd#latest README.tracd], TracGuide, TracInstall, TracModPython
     76See also: TracInstall, TracCgi, TracModPython, TracGuide