I believe on some servers these methods are disabled by default for
security reasons. I believe you have to enabled them to use them.

On Thu, Aug 23, 2012 at 4:59 PM, Scott Bigelow <eph...@gmail.com> wrote:
> I am having an issue with Apache/2.2.22 on Ubuntu 12.04, migrating service
> from an older system, Apache/2.2.3 on CentOS. We make use of PHP to serve
> RESTful requests, but I do not believe this is a PHP issue, since the issue
> is present even when not calling a PHP script.
>
> On the old server, it will accept any HTTP Method (specifically, PUT and
> DELETE are desired).
>
> On the new server, I cannot get it to recognize any method other than GET,
> POST, OPTIONS, and HEADER. Here is my very simple block:
>
>         <Directory "/var/www">
>                 Options FollowSymLinks
>                 AllowOverride None
>                 Order allow,deny
>                 allow from all
>                 <Limit DELETE GET>
>                 Order allow,deny
>                 Allow from all
>                 </Limit>
>         </Directory>
>
> Even with this stanza, "curl -X DELETE URL" returns a "405 Method not
> allowed".  When I change "Allow from all" to "Deny from all" in the <Limit>,
> it returns a 403 instead, so I know the block is effective for this request.
> Is there some other part of Apache which is preventing the DELETE method?
> Thanks for taking the time to read through my issue,
> -Scott



-- 
----------------------------------------------
"May the Source be with you."

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to