Changes between Version 2 and Version 3 of TracStandalone


Ignore:
Timestamp:
Dec 31, 2005, 4:43:10 PM (18 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v2 v3  
    11= Tracd =
    22
    3 Tracd は軽量なスタンドアローンの Trac サーバです。ほとんどのケースでは trac.cgi よりセットアップが簡単で、処理速度も速くなります。
     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].
    44
    5 '''Note: この機能は、まだ実験段階です。'''
     5== Pros ==
    66
    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]).
    89
    9  * 依存性が低い: apache その他 web サーバをインストールする必要がありません。
    10  * 速い: [http://projects.edgewall.com/trac/wiki/ModPython: ModPython] サポートバージョン並みに速いはずです(cgiよりはずっと速い)。
     10== Cons ==
    1111
    12 == 欠点 ==
     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].
    1315
    14  * 機能が少ない: Tracd に実装されているwebサーバはとてもシンプルで、 apache のような詳細なコンフィギュレーションはできません。
    15  * ダイジェスト認証のみ: Tracd は現在のところ、ユーザを apache 形式の htdigest ファイルを使って認証することしかできません。
    16  * ネイティブで https をサポートしない: 代わりに [http://www.rickk.com/sslwrap/ sslwrap] を使うことができます。
     16== Usage examples ==
    1717
    18 == 使用例 ==
    19 
    20 ポート 8080 に単一のプロジェクトを作成します。(http://localhost:8080/)
     18A single project on port 8080. (http://localhost:8080/)
    2119{{{
    2220 $ tracd -p 8080 /path/to/project
    2321}}}
    24 複数のプロジェクト(http://localhost:8080/project1/ と http://localhost:8080/project2/)
     22With more than one project. (http://localhost:8080/project1/ and http://localhost:8080/project2/)
    2523{{{
    2624 $ tracd -p 8080 /path/to/project1 /path/to/project2
    2725}}}
    28 Digest認証を使用。 /tmp/users.htdigest というファイルにレルム "mycompany.com" での project1のユーザアカウントの情報が格納されます。
     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
     37}}}
     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:
     41{{{
     42 $ tracd -p 8080 \
     43   --auth project1,/path/to/users.htdigest,mycompany.com \
     44   --auth project2,/path/to/users.htdigest,mycompany.com \
     45   /path/to/project1 /path/to/project2
    3146}}}
    3247
     48== Generating Passwords Without Apache ==
     49
     50If you don't have Apache available, you can use this simple Python script to generate your passwords:
     51
     52{{{
     53from optparse import OptionParser
     54import md5
     55
     56# build the options
     57usage = "usage: %prog [options]"
     58parser = OptionParser(usage=usage)
     59parser.add_option("-u", "--username",action="store", dest="username", type = "string",
     60                  help="the username for whom to generate a password")
     61parser.add_option("-p", "--password",action="store", dest="password", type = "string",
     62                  help="the password to use")
     63(options, args) = parser.parse_args()
     64
     65# check options
     66if (options.username is None) or (options.password is None):
     67   parser.error("You must supply both the username and password")
     68   
     69# Generate the string to enter into the htdigest file
     70realm = 'trac'
     71kd = lambda x: md5.md5(':'.join(x)).hexdigest()
     72print ':'.join((options.username, realm, kd([options.username, realm, options.password])))
     73}}}
    3374
    3475----
    35 参考: TracGuide, TracInstall, TracModPython
     76See also: TracInstall, TracCgi, TracModPython, TracGuide