SVN在DS 409+ Apache 服务器上的设置

Micheal Chen Lv6

date: 2011-02-16 23:37:40

配置文件位置: /usr/syno/apache/conf
其中:
httpd.conf 由 httpd.conf-user生成而来,作为用户apache服务器的配置文件(监听80端口)
httpd.conf-sys,作为系统apache服务器的配置文件(监听5000端口)

服务器启动脚本位置:/usr/syno/etc.defaults/rc.d
其中:
S97apache-user.sh 控制用户apache服务器的启动
S97apache-sys.sh 控制系统apache服务器的启动

  1. 在/usr/syno/apache/conf/httpd.conf-user中增加下面行
1
2
# SVN DAV settings
Include /opt/etc/apache2/conf.d/mod_dav_svn.conf
  1. 修改 /opt/etc/apache/conf.d/mod_dav_svn.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
LoadModule dav_module         modules/mod_dav.so
LoadModule dav_svn_module /opt/libexec/mod_dav_svn.so
LoadModule authz_svn_module /opt/libexec/mod_authz_svn.so

#
# Example configuration to enable HTTP access for a Subversion
# repository, "/home/svnroot".
#

#
# Example configuration to enable HTTP access for a Subversion
# repository, "/home/svnroot".
#

<Location /svn/ac>
DAV svn
SVNPath /volume1/svn/ac

# Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# Require SSL connection for password protection.
# SSLRequireSSL

AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /volume1/svn/auth-file
AuthzSVNAccessFile /volume1/svn/ac/conf/authz
Require valid-user
# </LimitExcept>
</Location>
  1. 修改/usr/syno/apache/conf/httpd.conf-user,以svnowner用户运行
1
2
User svnowner
Group nobody
  • Title: SVN在DS 409+ Apache 服务器上的设置
  • Author: Micheal Chen
  • Created at : 2011-02-16 23:37:40
  • Updated at : 2025-03-22 21:00:48
  • Link: https://www.xhis.com/hexo/2011/02/16/notes/SVN在DS-409-Apache-服务器上的设置/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
SVN在DS 409+ Apache 服务器上的设置