# Changes between Version 4 and Version 5 of TracStandalone

Ignore:
Timestamp:
Mar 20, 2010, 2:22:34 PM (12 years ago)
Comment:

--

### Legend:

Unmodified
 v4 = Tracd = 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]. Tracd is a lightweight standalone Trac web server. It can be used in a variety of situations, from a test or development server to a multiprocess setup behind another web server used as a load balancer. == Pros == * Fewer dependencies: You don't need to install apache or any other web-server. * Fast: Should be almost as fast as the [wiki:TracModPython mod_python] version (and much faster than the [wiki:TracCgi CGI]). * Fast: Should be almost as fast as the [wiki:TracModPython mod_python] version (and much faster than the [wiki:TracCgi CGI]), even more so since version 0.12 where the HTTP/1.1 version of the protocol is enabled by default * 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). == Cons == * Fewer features: Tracd implements a very simple web-server and is not as configurable or as scalable as Apache HTTPD. * Fewer features: Tracd implements a very simple web-server and is not as configurable or as scalable as Apache httpd. * No native HTTPS support: [http://www.rickk.com/sslwrap/ sslwrap] can be used instead, or [http://trac.edgewall.org/wiki/STunnelTracd stunnel -- a tutorial on how to use stunnel with tracd] or Apache with mod_proxy. {{{ sudo htpasswd -c /path/to/env/.htpasswd username $sudo htpasswd -c /path/to/env/.htpasswd username }}} then for additional users: {{{ sudo htpasswd /path/to/env/.htpasswd username2 }}} then for starting the tracd: {{{ tracd -p 8080 --basic-auth=environmentname,/fullpath/environmentname/.htpasswd,/fullpath/environmentname /fullpath/environmentname }}}$ sudo htpasswd /path/to/env/.htpasswd username2 }}} then for starting the tracd (on windows skip the "=" after --basic-auth): {{{ $tracd -p 8080 --basic-auth=environmentname,/fullpath/environmentname/.htpasswd,/fullpath/environmentname /fullpath/environmentname }}} 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. (You must still specify a dialogic "realm", which can be an empty string by trailing the BASICAUTH with a comma.) ''Support for Basic authentication was added in version 0.9.'' The general format for using authentication is: The general format for using authentication is (on windows skip the "=" after --auth): {{{ * '''project_path''' path of the project Example: Example (on windows skip the "=" after --auth): {{{ {{{ python trac-digest.py -u username -p password >> c:\digest.txt tracd --port 8000 --auth=proj_name,c:\digest.txt,trac c:\path\to\proj_name$ python trac-digest.py -u username -p password >> c:\digest.txt \$ tracd --port 8000 --auth=proj_name,c:\digest.txt,trac c:\path\to\proj_name }}} in the Wiki: [//chrome/site/software-0.1.tar.gz] The development version of Trac supports a new htdocs: TracLinks Since 0.10, Trac supports a new htdocs: TracLinks syntax for the above. With this, the example link above can be written simply htdocs:software-0.1.tar.gz. ---- See also: TracInstall, TracCgi, TracModPython, TracGuide, [trac:TracOnWindowsStandalone?version=13#RunningTracdasservice Running tracd.exe as a Windows service] See also: TracInstall, TracCgi, TracModPython, TracGuide, [trac:TracOnWindowsStandalone?version=13#RunningTracdasservice Running tracd.exe as a Windows service], [trac:TracOnWindowsIisAjp], [trac:TracNginxRecipe]