Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Changes between Version 1 and Version 2 of TracStandalone

Author:
trac (IP: 0.0.0.0)
Timestamp:
12/29/05 18:50:51 (12 years ago)
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  
    5 '''Note: tracd is still experimental.''' 
     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]. 
    64 
    75== Pros == 
    86 
    97 * Fewer dependencies: You don't need to install apache or any other web-server. 
    10  * 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]). 
    119 
    1210== Cons == 
    1311 
    14  * Less features: Tracd implements a very simple web-server and is not as configurable as apache
    15  * Only htdigest authentication: Tracd can currently only authenticate users against apache-htdigest files. 
    16  * 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, 
     14   or [http://lists.edgewall.com/archive/trac/2005-August/004381.html STUNNEL]
    1715 
    1816== Usage examples == 
    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{{{ 
    3542 $ tracd -p 8080 \ 
    36    --auth project1,/tmp/users.htdigest,mycompany.com \ 
    37    --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 \ 
    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. But on that platform,  
    44 the sensitivity on multithread issues is high. 
    45 tracd is not (yet!) very robust in multithread mode, 
    46 see for example #1401 and #1721 for some of the issues... 
    47  
    48 I recently found out that all the occasional problems  
    49 (i.e. crashes) I had can be avoided by telling tracd  
    50 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 == Generating passwords on Windows == 
    68  
    69 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: 
    7051 
    7152{{{ 
    9374 
    9475---- 
    95 See also: [source:trunk/README.tracd#latest README.tracd], TracGuide, TracInstall, TracModPython 
     76See also: TracInstall, TracCgi, TracModPython, TracGuide