
Apache を使用して Raspberry Pi に websvn をセットアップしようとしています。/etc/apache2/conf.d/websvn には次の設定があります。
# Configuration for websvn using php4.
Alias /websvn /usr/share/websvn
<Directory /usr/share/websvn>
## No MultiViews
DirectoryIndex index.php
Options FollowSymLinks
## MultiViews
#DirectoryIndex wsvn.php
#Options FollowSymLinks MultiViews
## End MultiViews
Order allow,deny
Allow from all
<IfModule mod_php4.c>
php_flag magic_quotes_gpc Off
php_flag track_vars On
</IfModule>
</Directory>
しかし、接続しようとするとhttp://.../websvnエラー 404 が発生します。Apache ログには次のように記載されています (ログ レベルを上げる必要がありました)。
[Sat May 14 12:17:52.737294 2016] [authz_core:debug] [pid 652] mod_authz_core.c(809): [client 79.54.45.40:51893] AH01626: authorization result of Require all granted: granted
[Sat May 14 12:17:52.738726 2016] [authz_core:debug] [pid 652] mod_authz_core.c(809): [client 79.54.45.40:51893] AH01626: authorization result of <RequireAny>: granted
[Sat May 14 12:17:52.741081 2016] [core:info] [pid 652] [client 79.54.45.40:51893] AH00128: File does not exist: /var/www/html/websvn
問題は、存在しない /var/www/html/websvn にルーティングしようとしていることだと思います。代わりに、そのエイリアスのように、/usr/share/websvn から読み取る必要があると思います。なぜこのようなことが起こるのか、何か考えはありますか? /etc ディレクトリ全体を grep しましたが、文字列 "/var/www/html/websvn" は見つかりませんでした。
答え1
問題は、websvn conf ファイルが /etc/apache2/modules-enabled ではなく /etc/apache2/conf.d に配置されていたことに関係していました。modules-enabled からシンボリックリンクを作成するだけで問題は解決しました。