Changes between Version 1 and Version 2 of TracFastCgi
- Timestamp:
- Dec 31, 2005, 5:43:43 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracFastCgi
v1 v2 1 = Trac with FastCGI=1 = Trac を FastCGI で使用する = 2 2 3 Since version 0.9, Trac supports being run through the [http://www.fastcgi.com/ FastCGI] interface. Like [wiki:TracModPython mod_python], this allows Trac to remain resident, and is faster than external CGI interfaces which must start a new process for each request. However, unlike mod_python, it is able to support [http://httpd.apache.org/docs/suexec.html SuEXEC]. Additionally, it is supported by much wider variety of web servers. 3 バージョン 0.9 以降、 Trac は [http://www.fastcgi.com/ FastCGI] インタフェースをサポートするようになりました。 [wiki:TracModPython mod_python] 同様、 Trac を常駐させるため、外部の各リクエストに対して新しいプロセスを生成する CGI インタフェースよりも処理速度が速いです。その上 `mod_python` とは異なり [http://httpd.apache.org/docs/suexec.html SuEXEC] をサポートすることができます。また、より多くの種類の Web サーバにサポートされています。 4 4 5 == Simple Apache configuration==5 == 単純な Apache の設定 == 6 6 {{{ 7 7 # Enable fastcgi for .fcgi files … … 15 15 }}} 16 16 17 You can either setup the `TRAC_ENV` as an overall default:17 `TRAC_ENV` を以下のように設定することができます: 18 18 {{{ 19 19 FastCgiConfig -initial-env TRAC_ENV=/path/to/env/trac 20 20 }}} 21 21 22 Or you can serve multiple Trac projects in a directory like:22 もしくは複数の Trac プロジェクトを扱っているときは、このように設定します: 23 23 {{{ 24 24 FastCgiConfig -initial-env TRAC_ENV_PARENT_DIR=/parent/dir/of/projects 25 25 }}} 26 26 27 Configure `ScriptAlias` or similar options as described in TracCgi, but calling `trac.fcgi` instead of `trac.cgi`. 27 `ScriptAlias` を設定するもしくは似たオプションが TracCgi で説明されていますが、 `trac.cgi` のかわりに `trac.fcgi` と呼びます。 28 28 29 == Simple Lighttpd Configuration==29 == 単純な Lighttpd の設定 == 30 30 31 The FastCGI front-end was developed primarily for use with alternative webservers, such as [http://www.lighttpd.net/ lighttpd]. 31 FastCGI フロントエンドは最初 [http://www.lighttpd.net/ lighttpd] のような、 Apache 以外の Web サーバのために開発されました。 32 32 33 lighttpd is a secure, fast, compliant and very flexible web-server that has been optimized for high-performance34 environments. It has a very low memory footprint compared to other web servers and takes care of CPU load. 33 lighttpd はセキュアで高速で、規格に準拠したとても柔軟な Web サーバで、高いパフォーマンスの環境で最適化されます。 34 他の Web サーバに比べて CPU や、メモリの占有率がとても少ないです。 35 35 36 For using `trac.fcgi` with lighttpd add the following to your lighttpd.conf:36 `trac.fcgi` を lighttpd で使用するためには、 lighttpd.conf に以下の行を追加します: 37 37 {{{ 38 38 fastcgi.server = ("/trac" => … … 48 48 }}} 49 49 50 Note that you will need to add a new entry to `fastcgi.server` for each separate Trac instance that you wish to run. Alternatively, you may use the `TRAC_ENV_PARENT_DIR` variable instead of `TRAC_ENV` as described above. 50 動かしたい Trac のインスタンス毎に `fastcgi.server` のエントリを追加する必要があります。別の方法として、、上記の `TRAC_ENV` の代わりに `TRAC_ENV_PARENT_DIR` を使用できます。 51 51 52 Other important information like [http://trac.lighttpd.net/trac/wiki/TracInstall this updated TracInstall page], [wiki:TracCgi#MappingStaticResources and this] are useful for non-fastcgi specific installation aspects. 52 その他重要な情報、例えば、 [http://trac.lighttpd.net/trac/wiki/TracInstall lighttpd の TracInstall] や、 [wiki:TracCgi#静的なリソースをマッピングする TracCgi] などは fast-cgi 固有ではありませんが、インストールの詳細をつかむのに有用でしょう。 53 53 54 Relaunch lighttpd, and browse to `http://yourhost.example.org/trac` to access Trac. 55 54 lighttpd を再起動し、ブラウザに `http://yourhost.example.org/trac` を入力して、 Trac にアクセスして下さい。 56 55 ---- 57 See also TracCgi, TracModPython, TracInstall, TracGuide56 See also: TracCgi, TracModPython, TracInstall, TracGuide