Changes between Version 27 and Version 28 of TracStandalone
- Timestamp:
- Aug 28, 2006, 5:38:34 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracStandalone
v27 v28 6 6 7 7 * Fewer dependencies: You don't need to install apache or any other web-server. 8 * Fast: Should be as fast as the [wiki:TracModPython mod_python] version (and much faster than the [wiki:TracCgi CGI]). 8 * Fast: Should be almost as fast as the [wiki:TracModPython mod_python] version (and much faster than the [wiki:TracCgi CGI]). 9 * Automatic reloading: For development, Tracd can be used in ''auto_reload'' mode, which will automatically restart the server whenever you make a change to the code (in Trac itself or in a plugin). 9 10 10 11 == Cons == 11 12 12 * Fewer features: Tracd implements a very simple web-server and is not as configurable as Apache HTTPD.13 * Fewer features: Tracd implements a very simple web-server and is not as configurable or as scalable as Apache HTTPD. 13 14 * No native HTTPS support: [http://www.rickk.com/sslwrap/ sslwrap] can be used instead, 14 or [ wiki:STunnelTracd stunnel -- a tutorial on how to use stunnel with tracd] or Apache with mod_proxy.15 or [http://trac.edgewall.org/wiki/STunnelTracd stunnel -- a tutorial on how to use stunnel with tracd] or Apache with mod_proxy. 15 16 16 17 == Usage examples == … … 25 26 }}} 26 27 27 You can't have the last portion of the path identical between the projects since that's how trac keepsthe URLs of the28 different projects unique. So if you use /project1/path/to and /project2/path/to, you will only see the second project.28 You can't have the last portion of the path identical between the projects since Trac uses that name to keep the URLs of the 29 different projects unique. So if you use `/project1/path/to` and `/project2/path/to`, you will only see the second project. 29 30 30 An alternative way to serve multiple projects is to specify 31 a parent directory in which each subdirectory is a Trac project, using the `-e` option. The example above could be rewritten: 31 An alternative way to serve multiple projects is to specify a parent directory in which each subdirectory is a Trac project, using the `-e` option. The example above could be rewritten: 32 32 {{{ 33 33 $ tracd -p 8080 -e /path/to … … 38 38 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. 39 39 40 '' Basic authentication is only supported since [milestone:0.9] (the final release).''40 ''Support for Basic authentication was added in version 0.9.'' 41 41 42 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:42 If the file `/path/to/users.htdigest` contains user accounts for project1 with the realm "mycompany.com", you'd use the following command-line to start tracd: 43 43 {{{ 44 44 $ tracd -p 8080 --auth project1,/path/to/users.htdigest,mycompany.com /path/to/project1 45 45 }}} 46 ''Note that the project “name” passed to the `--auth` option is '''actually the base name of the project environment directory.''' 47 '' 46 47 '''Note''': the project "name" passed to the `--auth` option is the base name of the project environment directory. 48 48 49 49 Of course, the digest file can be be shared so that it is used for more than one project: … … 63 63 }}} 64 64 65 ''This will be supported in 0.9.1 (since r2524).''66 67 65 == How to set up an htdigest password file == 68 66 69 If you have Apache available, you can use the htdigest command to generate the password file. Type 'htdigest' to get some usage instructions, or read [http://httpd.apache.org/docs/2.0/programs/htdigest.html this page] from the Apache manual to get precise instructions. You'll be prompted for a password to enter for each user that you create. For the name of the password file, you can use whatever you like, but if you use something like 'users.htdigest' it will remind you what the file contains. As a suggestion, put it in your <projectname>/conf folder along with the trac.inifile.67 If you have Apache available, you can use the htdigest command to generate the password file. Type 'htdigest' to get some usage instructions, or read [http://httpd.apache.org/docs/2.0/programs/htdigest.html this page] from the Apache manual to get precise instructions. You'll be prompted for a password to enter for each user that you create. For the name of the password file, you can use whatever you like, but if you use something like `users.htdigest` it will remind you what the file contains. As a suggestion, put it in your <projectname>/conf folder along with the [TracIni trac.ini] file. 70 68 71 The 'realm' parameter for the --auth argument, you can just enter 'TracRealm' if you don't have or want to use a company name. 72 73 Note that you can start tracd without the --auth argument, but if you click on the 'Login' link you will get no response (and the server will print out an error message). 69 Note that you can start tracd without the --auth argument, but if you click on the ''Login'' link you will get an error. 74 70 75 71 == Generating Passwords Without Apache ==