Sha256: c06b028cacdba898b2c13856e0e23cb537669f964e861c465a61b379ead8d5e9

Contents?: true

Size: 1.73 KB

Versions: 2

Compression:

Stored size: 1.73 KB

Contents

#
# Distributed authoring and versioning (WebDAV)
#
# Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
#                   mod_auth_digest, mod_authn_file
#

# 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.

DavLockDB "<%= httpd.webdav_dir %>/DavLock"

Alias /webdav "<%= httpd.webdav_dir %>"

<Directory "<%= httpd.webdav_dir %>">
  Dav On
	Options +Indexes
	IndexOptions FancyIndexing
	AddDefaultCharset UTF-8
	
	Order Allow,Deny
	Allow from all

#    AuthType Digest
	AuthType Basic
    AuthName WebDav

    # You can use the htdigest program to create the password database:
    #   htdigest -c "/usr/user.passwd" DAV-upload admin
    AuthUserFile "<%= httpd.auth_user_file %>"
    AuthDigestProvider file
	
    # Allow universal read-access, but writes are restricted
    # to the admin user.
    <LimitExcept GET OPTIONS>
		Require valid-user
    </LimitExcept>
</Directory>

#
# The following directives disable redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with several clients that do not appropriately handle 
# redirects for folders with DAV methods.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peony-0.3.1 templates/httpd/extra/httpd-dav.conf.erb
peony-0.3.0 templates/httpd/extra/httpd-dav.conf.erb