Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_dav: add DavBasePath #377

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/manual/mod/mod_dav.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,36 @@ Alias "/php-source" "/home/gstein/php_files"
</usage>
</directivesynopsis>

<directivesynopsis>
<name>DavBasePath</name>
<description>Configure repository root path</description>
<syntax>DavBasePath <var>root-path</var></syntax>
<default>DavBasePath /repos/</default>
notroj marked this conversation as resolved.
Show resolved Hide resolved
notroj marked this conversation as resolved.
Show resolved Hide resolved
<contextlist><context>directory</context></contextlist>
<compatibility>Available in version 2.5.1 and later</compatibility>

<usage>
<p>If a DAV repository is configured using a regular expression
match (such as <directive module="core">LocationMatch</directive>)
then <module>mod_dav</module> will not be able to find the root of
the repository from the pathname alone. Third-party providers (for
example, Subversion's <a
href="https://svnbook.red-bean.com/en/1.7/svn.ref.mod_dav_svn.conf.html">mod_dav_svn</a>)
may fail to handle requests without the correct repository root.</p>

<p>To allow providers to work correctly in such a configuration,
<directive>DavBasePath</directive> must be used.</p>

<highlight language="config">
&lt;LocationMatch "^/repos/"&gt;
Dav svn
DavBasePath /repos
SVNParentPath /var/svn
&lt;/LocationMatch&gt;
</highlight>
</usage>
</directivesynopsis>

<directivesynopsis>
<name>DavMinTimeout</name>
<description>Minimum amount of time the server holds a lock on
Expand Down