Changes between Version 1 and Version 2 of TracStandalone
- Timestamp:
- Jan 30, 2006, 11:09:12 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracStandalone
v1 v2 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 … … 26 24 $ tracd -p 8080 /path/to/project1 /path/to/project2 27 25 }}} 28 With htdigest authentication. The file /tmp/users.htdigest contain user accounts for project1 with the realm "mycompany.com". 26 27 You can't have the last portion of the path identical between the projects since that's how trac keeps the URLs of the 28 different 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 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: 29 35 {{{ 30 $ 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 31 37 }}} 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 40 Of course, the digest file can be be shared so that it is used for more than one project: 34 41 {{{ 35 $ tracd -p 8080 36 --auth project1,/ tmp/users.htdigest,mycompany.com37 --auth project2,/ tmp/users.htdigest,mycompany.com42 $ tracd -p 8080 \ 43 --auth project1,/path/to/users.htdigest,mycompany.com \ 44 --auth project2,/path/to/users.htdigest,mycompany.com \ 38 45 /path/to/project1 /path/to/project2 39 46 }}} 40 47 41 == Tracd on Windows==48 == Generating Passwords Without Apache == 42 49 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): 50 If you don't have Apache available, you can use this simple Python script to generate your passwords: 69 51 70 52 {{{ … … 92 74 93 75 ---- 94 See also: [source:trunk/README.tracd#latest README.tracd], TracGuide, TracInstall, TracModPython76 See also: TracInstall, TracCgi, TracModPython, TracGuide