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
|
# Subversion
<VirtualHost 87.98.139.201:443>
ServerName svn.toine.pro
PerlLoadModule Apache::Redmine
<Location />
DAV svn
SVNParentPath /var/www/svn
Order deny,allow
Deny from all
Satisfy any
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
AuthType Basic
AuthName "Redmine SVN Repository"
#read-only access
<Limit GET PROPFIND OPTIONS REPORT>
Require valid-user
Allow from 87.98.139.201
# Allow from another-ip
Satisfy any
</Limit>
# write access
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
# postgres
RedmineDSN "DBI:Pg:dbname=redmine;host=localhost"
RedmineDbUser "user"
RedmineDbPass "password"
</Location>
CustomLog /var/log/apache2/SVNaccess.log combined
ErrorLog /var/log/apache2/SVNerror.log
SSLEngine on
SSLCertificateFile /var/www/.ssl/svn.crt
SSLCertificateKeyFile /var/www/.ssl/svn.key
</VirtualHost>
<VirtualHost 87.98.139.201:80>
ServerName svn.toine.pro
Redirect / https://svn.toine.pro/
</VirtualHost> |
Partager