Skip to content

Instantly share code, notes, and snippets.

@binbin666
Created August 26, 2018 07:15
Show Gist options
  • Save binbin666/5ca3a284a833329c55232857f2b52de3 to your computer and use it in GitHub Desktop.
Save binbin666/5ca3a284a833329c55232857f2b52de3 to your computer and use it in GitHub Desktop.
#LoadModule dav_svn_module modules/mod_dav_svn.so
#LoadModule authz_svn_module modules/mod_authz_svn.so
#LoadModule dontdothat_module modules/mod_dontdothat.so
<DirectoryMatch "/ranchoData/www/(attachment|html|data)">
<Files ~ ".php">
Order allow,deny
Deny from all
</Files>
</DirectoryMatch>
### svn-iotor
<VirtualHost *:80>
DocumentRoot /ranchoData/www/hello
ServerName svn.domain.com
#AddExternalAuth pwauth /usr/bin/pwauth
#SetExternalAuthMethod pwauth pipe
<Location /svn/>
AddDefaultCharset utf-8
DAV svn
SVNParentPath /home/svn/project
#SVNListParentPath On
AuthzSVNAccessFile /home/svn/project/conf/authz
AuthType Basic
AuthBasicProvider file
#extenal
AuthName "Authorization Realm"
AuthUserFile /home/svn/project/conf/passwd
#AuthExternal pwauth
#Satisy any
Require valid-user
</Location>
<Directory "/ranchoData/www/hello">
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)-htm-(.*)$ .php?
RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ /simple/index.php?
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
ErrorLog "/ranchoData/log/httpd/svn-domain-error.log"
CustomLog "/ranchoData/log/httpd/svn-domain.log" common
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment