[users@httpd] Allow HTTP DELETE method?

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

 



Hi,

I'm running Apache 1.3.33 and am trying to restrict a certain directory for a
client to view, download and then delete files.

The restricting, viewing and downloading bit was simple enough, but the deleting
bit isn't working :-(

Here's the httpd.conf entry...

<Directory "/foo/bar/directoryname/">
Options Indexes
AuthUserFile /usr/local/apache/conf/htaccess/clientpassword
AuthName Client Name
AuthType Basic
require valid-user

<limit GET DELETE>
require valid-user
</limit>
</Directory>

But when you run the following...

curl -u user:password -X DELETE http://www.company.com/directoryname/testfile

...you get this back...

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>405 Method Not Allowed</TITLE>
</HEAD><BODY>
<H1>Method Not Allowed</H1>
The requested method DELETE is not allowed for the URL /directoryname/testfile.<P>
<HR>
<ADDRESS>Apache/1.3.33 Server at www.company.com Port 80</ADDRESS>
</BODY></HTML>

Even if you edit the permissions so the directory is owned by the user the
webserver is running as, and also chmod 777 the testfile it still doesn't work.

I'm thinking it's more an error with my apache configuration than file
permissions, but I could be wrong. Any ideas?

Thanks very much.

---- - Message sent via Madasafish Webmail - http://www.madasafish.com/ Up to 8Mb Broadband now from just £11.99 a month

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