per-subdirectory 405 Method Not Allowed in .htaccess file for read-only WebDAV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Experts,

I have a directory named 'foo' in which I have a subdirectory named 'bar' and an '.htaccess' file in which I need to specify that all methods expect GET, HEAD, OPTIONS, and PROPFIND on all resources in the 'bar' subdirectory should result in 405 Method Not Allowed response. The directory layout is as follows:

   foo
       .htaccess
       bar
       ...

I cannot have .htaccess in 'bar' and thus cannot specify <LimitExcept> for the 'bar' directory, plus <Limit> and <LimitExcept> both result in 403 Forbidden rather than 405 Method Not Allowed. Am I to use mod_rewrite rewrites with the R=405 flag? If so, can I somehow add the list of allowed methods to the Allow header in 405 Method Not Allowed responses as required by RFC 2616 section 10.4.6?

The ultimate goal here is to make the 'bar' subdirectory of the WebDAV-enabled 'foo' directory read-only for everyone.

Thanks,
Vasiliy

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux