| 6 | |
| 7 | == Apache options == |
| 8 | * [http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.blanket Authorization Options > Blanket access control] |
| 9 | * The parameters present on the Limit and LimitExcept directives are HTTP request types that are affected by that block. For example, if you wanted to disallow all access to your repository except the currently supported read-only operations, you would use the LimitExcept directive, passing the GET, PROPFIND, OPTIONS, and REPORT request type parameters. Then the previously mentioned Require valid-user directive would be placed inside the <LimitExcept> block instead of just inside the <Location> block. |
| 10 | {{{ |
| 11 | <Location /svn> |
| 12 | DAV svn |
| 13 | SVNParentPath /var/svn |
| 14 | |
| 15 | # how to authenticate a user |
| 16 | AuthType Basic |
| 17 | AuthName "Subversion repository" |
| 18 | AuthUserFile /path/to/users/file |
| 19 | |
| 20 | # For any operations other than these, require an authenticated user. |
| 21 | <LimitExcept GET PROPFIND OPTIONS REPORT> |
| 22 | Require valid-user |
| 23 | </LimitExcept> |
| 24 | </Location> |
| 25 | }}} |