How can I enable the handling of all HTTP methods as defined in RFC 2616 on Apache web server ? These would be:
OPTIONS
GET
HEAD
POST
PUT
DELETE
TRACE
CONNECT
I am using the Apache HTTP Server, version 2.2.22 (Ubuntu)
Here is my .htaccess
File:
<Location /output>
Dav On
<LimitExcept GET HEAD OPTIONS PUT>
Allow from all
</LimitExcept>
</Location>
Here is the output I get from running Telnet – There is no PUT method:
Escape character is '^]'.
OPTIONS / HTTP/1.0
HTTP/1.1 200 OK
Date: Tue, 09 Oct 2012 06:56:42 GMT
Server: Apache/2.2.22 (Ubuntu)
Allow: GET,HEAD,POST,OPTIONS
Vary: Accept-Encoding
Content-Length: 0
Connection: close
Content-Type: text/html
Connection closed by foreign host.
Any thoughts on this?
/output
location, but you're asking forOPTIONS
on the/
location. Method limits do not apply to parent locations, only to deeper locations.