Files
interactive/fhs/config/httpd-dav-sh-opendav.conf.in
2026-08-07 17:38:18 +09:00

78 lines
2.3 KiB
Plaintext

#
# Distributed authoring and versioning (WebDAV)
#
# Required modules: mod_dav, libmod_dav_repos
#
#
## hidden server information
ServerSignature Off
ServerTokens Prod
## Rewrite mode on for cloud streaming
Include conf/extra/httpd-streaming-rewrite.conf
# The following example gives DAV write access to a directory called
# "uploads" under the ServerRoot directory.
#
# The User/Group specified in httpd.conf needs to have write permissions
# on the directory where the DavLockDB is placed and on any directory where
# "Dav On" is specified.
LoadModule dbd_module modules/mod_dbd.so
LoadModule dav_repos_module modules/libmod_dav_repos.so
LoadModule auth_basic_module modules/mod_auth_basic.so
################ DBD #####################################
DBDriver pgsql
DBDPersist On
DBDParams "hostaddr=##DATABASE## port=##DATABASE_PORT## dbname=localdb user=syshost password=PASSWDTEMP connect_timeout=5 application_name=sh-opendav"
DBDMin 3
DBDMax 5
DBDKeep 4
DBDExptime 900
################ DAV #######################################
DavProviderStorageDir ##STORAGE_ROOT##
DavProviderBaseURI /dav
DavProviderHostName ##DOMAIN##
DavProviderMaxFHS 500
DavProviderMaxAnonymous 500
DavProviderMaxAccount 300
DavProviderMaxProgess 5
DavProviderDBCharset ##DATABASE_ENCODING##
DavProviderCloseInsert off
# ModMimeUsePathInfo on
#DavLockDB /user2/httpd/auth/DavLock
#<Directory /user2/httpd/htdocs/dav>
<Location /dav>
# Dav On
DAV repos
DavDepthInfinity on
ModMimeUsePathInfo on
Options Indexes FollowSymLinks
AuthType Basic
AuthName "-- OpendDisk Login --"
#AuthUserFile /user2/httpd/auth/.davlogin
#AllowOverride None
order allow,deny
allow from all
<Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require valid-user
</Limit>
</Location>
#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash. This fixes a
# problem with Microsoft WebFolders which does not appropriately handle
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully