1# The WebDAV spec, RFC2518, promises the DAV header on all OPTIONS responses: 2# 3# This header indicates that the resource supports the DAV schema and 4# protocol as specified. All DAV compliant resources MUST return the 5# DAV header on all OPTIONS responses. 6# 7# Some WebDAV clients, e.g. Mac OS X WebDAVFS, fail to connect if this header 8# is missing. The WebDAV module will return the DAV header on all responses, 9# but some server configurations don't pass OPTIONS requests to scripts, e.g. 10# Apache doesn't pass OPTIONS requests to CGI scripts: 11# http://issues.apache.org/bugzilla/show_bug.cgi?id=37982 12# 13# Consequently, some WebDAV clients will work with mod_php, but not php-cgi. 14# 15# Alternatively, we can set the DAV header using mod_rewrite and mod_headers. 16# The Header statement doesn't belong in gallery2/.htaccess, it belongs in the 17# directory of the interpreter, i.e. php-cgi. 18# 19# To avoid editing /usr/lib/cgi-bin/.htaccess we can use the URL rewrite module 20# to redirect OPTIONS requests to this directory. 21# 22# Reimplementation of WebDavHelper::options using mod_headers. 23# 24# TODO: COPY not implemented. 25<IfModule mod_headers.c> 26 Header set Allow OPTIONS,PROPFIND,PROPPATCH,MKCOL,GET,HEAD,DELETE,PUT,MOVE,LOCK,UNLOCK 27 Header set DAV 1,2 28 Header set MS-Author-Via DAV 29</IfModule> 30