差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
freebsd:mod_dav_svn_mod_authz_svnでsubversionサーバの構築 [2013-07-24 15:59] Decomo |
freebsd:mod_dav_svn_mod_authz_svnでsubversionサーバの構築 [2015-09-17 14:15] (現在) Decomo [秘密鍵のパスワードの解除] |
||
---|---|---|---|
行 14: | 行 14: | ||
^リポジトリパス | / | ^リポジトリパス | / | ||
^認証系のファイル置き場 | / | ^認証系のファイル置き場 | / | ||
+ | |||
+ | ※Apache 2.4では一部変更点があるので[[# | ||
===== インストール ===== | ===== インストール ===== | ||
行 93: | 行 95: | ||
==== 正規ユーザーの追加 ==== | ==== 正規ユーザーの追加 ==== | ||
- | < | + | '' |
<cli> | <cli> | ||
$ sudo htpasswd -c / | $ sudo htpasswd -c / | ||
行 103: | 行 105: | ||
==== リポジトリへのアクセス制御設定 ==== | ==== リポジトリへのアクセス制御設定 ==== | ||
- | < | + | '' |
< | < | ||
[groups] | [groups] | ||
行 158: | 行 160: | ||
==== 証明書署名要求の生成 ==== | ==== 証明書署名要求の生成 ==== | ||
<cli prompt="# | <cli prompt="# | ||
- | # openssl req -new -key ssl.key/server.key > ssl.key/ | + | # openssl req -new -key ssl.key/secret.key > ssl.key/ |
Enter pass phrase for server.key: | Enter pass phrase for server.key: | ||
You are about to be asked to enter information that will be incorporated | You are about to be asked to enter information that will be incorporated | ||
行 183: | 行 185: | ||
==== 自己証明書の生成 ==== | ==== 自己証明書の生成 ==== | ||
<cli prompt="# | <cli prompt="# | ||
- | # openssl x509 -in ssl.key/ | + | # openssl x509 -in ssl.key/ |
Signature ok | Signature ok | ||
subject=/ | subject=/ | ||
行 193: | 行 195: | ||
Apache起動時に秘密鍵のパスワード入力を解除する。 | Apache起動時に秘密鍵のパスワード入力を解除する。 | ||
<cli prompt="# | <cli prompt="# | ||
- | # mv ssl.key/ | + | # openssl rsa -in ssl.key/secret.key -out ssl.key/ |
- | # openssl rsa -in ssl.key/server.pass.key -out ssl.key/ | + | Enter pass phrase for ssl.key/secret.key: |
- | Enter pass phrase for ssl.key/server.pass.key: | + | |
writing RSA key | writing RSA key | ||
</ | </ | ||
行 257: | 行 258: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ===== Apache 2.4 + Subversion 1.8対応 ===== | ||
+ | |||
+ | Apache 2.4 + Subversion 1.8にしたら動かなくなったので修正点を殴り書き。 | ||
+ | |||
+ | ==== mod_dav_svn ==== | ||
+ | |||
+ | / | ||
+ | |||
+ | ==== httpd.conf ==== | ||
+ | |||
+ | 以下のモジュールが有効になっているか確認。 | ||
+ | <code conf> | ||
+ | LoadModule socache_shmcb_module libexec/ | ||
+ | LoadModule ssl_module libexec/ | ||
+ | LoadModule dav_module libexec/ | ||
+ | LoadModule dav_fs_module libexec/ | ||
+ | </ | ||
+ | |||
+ | ==== 220_subversion.conf ==== | ||
+ | |||
+ | サードパーティ製モジュールの読み込みと設定は''/ | ||
+ | |||
+ | Subversion関連の設定は'' | ||
+ | |||
+ | '' | ||
+ | |||
+ | <code conf> | ||
+ | LoadModule dav_svn_module | ||
+ | LoadModule authz_svn_module | ||
+ | LoadModule dontdothat_module | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== ssl.conf ==== | ||
+ | |||
+ | **SSLMutex | ||
~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
+ |