forked from mikoto20000/railsgun
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathvcs.conf
More file actions
123 lines (102 loc) · 2.95 KB
/
Copy pathvcs.conf
File metadata and controls
123 lines (102 loc) · 2.95 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#mac# LoadModule dav_svn_module modules/mod_dav_svn.so
#mac# LoadModule authz_svn_module modules/mod_authz_svn.so
#mac# LoadModule wsgi_module modules/mod_wsgi.so
# Subversionの設定
#debian#PerlLoadModule Apache::Authn::Redmine
#rhel6# PerlLoadModule Apache::Authn::Redmine
#mac# PerlLoadModule Authn::Redmine
<Location /svn/>
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
DAV svn
SVNParentPath /var/opt/alminium/svn
SVNListParentPath on
AuthzSVNAccessFile /etc/opt/alminium/svnauthz
AuthType Basic
AuthName Subversion
# for Redmine Authentication
RedmineDSN "DBI:mysql:database=alminium;host=localhost"
RedmineDbUser "alminium"
RedmineDbPass "alminium"
Require valid-user
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Allow from all
</IfModule>
</Location>
# Gitの設定
SetEnv GIT_PROJECT_ROOT /var/opt/alminium/git
SetEnv GIT_HTTP_EXPORT_ALL
#debian#ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
#rhel6# ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
#mac# ScriptAlias /git/ /opt/local/libexec/git-core/git-http-backend/
<Location /git/>
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
AuthType Basic
AuthName Git
# for Redmine Authentication
RedmineDSN "DBI:mysql:database=alminium;host=localhost"
RedmineDbUser "alminium"
RedmineDbPass "alminium"
RedmineGitSmartHttp yes
Require valid-user
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Allow from all
</IfModule>
</Location>
# DAVを使う場合
#Alias /git /var/opt/alminium/git
#<Location /git>
# Options Indexes
# DAV on
# AuthType Basic
# AuthName user
## for MySQL Authentication
# AuthMYSQLEnable On
# AuthMySQLHost localhost
# AuthMySQLDB alminium
# AuthMySQLUser alminium
# AuthMySQLPassword alminium
# AuthMySQLUserTable users
# AuthMySQLNameField login
# AuthMySQLPasswordField hashed_password
# AuthMySQLPwEncryption sha1
# Require valid-user
# <IfModule mod_authz_core.c>
# Require all granted
# </IfModule>
# <IfModule !mod_authz_core.c>
# Order deny,allow
# Allow from all
# </IfModule>
#</Location>
# Mercurialの設定
WSGISocketPrefix run/wsgi
WSGIScriptAlias /hg /etc/opt/alminium/hgweb.wsgi
<Location /hg/>
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
WSGIApplicationGroup %{GLOBAL}
AuthType Basic
AuthName Mercurial
# for Redmine Authentication
RedmineDSN "DBI:mysql:database=alminium;host=localhost"
RedmineDbUser "alminium"
RedmineDbPass "alminium"
Require valid-user
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Allow from all
</IfModule>
</Location>