Changes between Version 12 and Version 13 of TracStandalone
- Timestamp:
- Oct 31, 2005, 4:08:07 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracStandalone
v12 v13 1 1 = Tracd = 2 2 3 Tracd is a lightweight stand-alone Trac server. In most cases it's easier to setup and runs faster than trac.cgi. 4 3 Tracd is a lightweight standalone Trac web server. In most cases it's easier to setup and runs faster than the [wiki:TracCgi CGI script]. 5 4 6 5 == Pros == 7 6 8 7 * 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]). 10 9 11 10 == Cons == 12 11 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, 16 14 or [http://lists.edgewall.com/archive/trac/2005-August/004381.html STUNNEL]. 17 15 … … 30 28 different projects unique. So if you use /project1/path/to and /project2/path/to, you will only see the second project. 31 29 32 With htdigest authentication. The file /tmp/users.htdigest contain user accounts for project1 with the realm "mycompany.com". 30 == Using Authentication == 31 32 Tracd 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 34 If 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: 33 35 {{{ 34 $ tracd -p 8080 --auth project1,/ tmp/users.htdigest,mycompany.com /path/to/project136 $ tracd -p 8080 --auth project1,/path/to/users.htdigest,mycompany.com /path/to/project1 35 37 }}} 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 40 Of course, the digest file can be be shared so that it is used for more than one project: 38 41 {{{ 39 42 $ 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 \ 42 45 /path/to/project1 /path/to/project2 43 46 }}} 44 47 45 == Tracd on Windows==48 == Generating Passwords Without Apache == 46 49 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): 50 If you don't have Apache available, you can use this simple Python script to generate your passwords: 73 51 74 52 {{{ … … 96 74 97 75 ---- 98 See also: [source:trunk/README.tracd#latest README.tracd], TracGuide, TracInstall, TracModPython76 See also: TracInstall, TracCgi, TracModPython, TracGuide