Project

General

Profile

Defect #5071 ยป httpd-svn-redmine-auth.conf

Bryce Nordgren, 2010-03-14 01:15

 
# /svn location for users
PerlLoadModule Apache::Authn::Redmine
PerlLoadModule Authen::Simple::LDAP
<Location /repos>
#RewriteEngine on
#RewriteCond %{HTTPS} ^off$
#RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=permanent]

DAV svn
SVNParentPath "C:/sourcecode/redminerepos"
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 166.7.27.15
# Allow from another-ip
Satisfy any
</Limit>
# write access
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>

## for mysql
RedmineDSN "DBI:mysql:database=redmine;host=localhost"
## for postgres
# RedmineDSN "DBI:Pg:dbname=databasename;host=my.db.server"
## for SQLite3
# RedmineDSN "DBI:SQLite:dbname=database.db"

RedmineDbUser "redmine"
RedmineDbPass "redmine"
#RedmineCacheCredsMax 50
</Location>
    (1-1/1)