我正在尝试使用apache在Raspberry Pi上安装websvn。在/etc/apache2/conf.d.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目录,发现字符串"/var/www/html/websvn“没有出现。
发布于 2016-05-22 01:39:44
问题与以下事实有关: websvn conf文件被放置在/etc/apache2/con.d中,而不是启用/etc/apache2/模块。只是从模块的符号链接,启用了解决问题。
https://serverfault.com/questions/776751
复制相似问题