~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/ja/user-guide/http_smart_server.txt

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        Options Indexes FollowSymLinks
45
45
        RewriteEngine On
46
46
        RewriteBase /code
47
 
        RewriteRule ^(.*/|)\.bzr/smart$ /srv/example.com/scripts/bzr-smart.fcgi
 
47
        RewriteRule ^(.*/)?\.bzr/smart$ /srv/example.com/scripts/bzr-smart.fcgi
48
48
    </Directory>
49
49
 
50
50
    # bzr-smart.fcgiはDocumentRootの元に存在しないので、実行されるように
74
74
 
75
75
FastCGIと同じ方法でmod_rewriteを用いて書き換えルールを定義します::
76
76
 
77
 
    RewriteRule ^(.*/|)\.bzr/smart$ /srv/example.com/scripts/bzr-smart.fcgi
 
77
    RewriteRule ^(.*/)?\.bzr/smart$ /srv/example.com/scripts/bzr-smart.fcgi
78
78
 
79
79
変更は次のようになります::
80
80
 
81
 
    RewriteRule ^(.*/|)\.bzr/smart$ /srv/example.com/scripts/bzr-smart.py
 
81
    RewriteRule ^(.*/)?\.bzr/smart$ /srv/example.com/scripts/bzr-smart.py
82
82
 
83
83
mod_fastcgiのように、スクリプトがどのように扱われるのかも定義します::
84
84