readme

来自「subversion-1.4.5.tar.gz 配置svn的源码」· 代码 · 共 50 行

TXT
50
字号
mod_dontdothat is an Apache module that allows you to block specific typesof Subversion requests.  Specifically, it's designed to keep users from doingthings that are particularly hard on the server, like checking out the rootof the tree, or the tags or branches directories.  It works by sticking aninput filter in front of all REPORT requests and looking for dangerous typesof requests.  If it finds any, it returns a 403 Forbidden error.You can compile and install it via apxs:$ apxs -c \       -I$PREFIX/include/subversion-1 \       -L$PREFIX/lib -lsvn_subr-1        mod_dontdothat.c$ apxs -i -n dontdothat mod_dontdothat.laIt is enabled via single httpd.conf directive, DontDoThatConfigFile:<Location /svn>  DAV svn  SVNParentPath /path/to/repositories  DontDoThatConfigFile /path/to/config.file</Location>The file you give to DontDoThatConfigFile is a Subversion configuration filethat contains the following sections.[recursive-actions]/*/trunk = allow/ = deny/* = deny/*/tags = deny/*/branches = deny/*/* = deny/*/*/tags = deny/*/*/branches = denyAs you might guess, this defines a set of patterns that control what theuser is not allowed to do.  Anything with a 'deny' after it is denied, andas a fallback mechanism anything with an 'allow' after it is special casedto be allowed, even if it matches something that is denied.Note that the wildcard portions of a rule only swallow a single directory,so /* will match /foo, but not /foo/bar.  They also must be at the end ofa directory segment, so /foo* or /* are valid, but /*foo is not.These rules are applied to any recursive action, which basically means anySubversion command that goes through the update-report, like update, diff,checkout, merge, etc.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?