Re: Implementing HTTP PUT

> I'd love to see PUT more widely available.

PUT is fairly easy to implement on Apache, and I have been able to do
so sucessfully, although I am still sorting out some bugs. There is an
excellent article about adding PUT capabilities to Apache at
apacheweek [1], and they have a Perl script [2] that you can use for
this purpose.

All you need to do is add a PUT handler in the conf file:-

     Script PUT /cgi-bin/

Put that in whatever place you want to give write access to: this can
be a whole server (just put it anywhere), a directory (using
<Directory x>) or even a file (using <Files x>). Then of course, your script goes in your cgi-bin.

Authentication is a bit trickier, but the apacheweek article says to
do something like:-

     <Directory /usr/local/etc/httpd/htdocs>
       Script PUT /cgi-bin-put/put.cgi

     <Directory /usr/local/etc/httpd/cgi-bin-put>
       AuthType Basic
       AuthName "Authorised PUT Publishers"
       AuthUserFile /usr/local/etc/httpd/htpasswd-put

     ScriptAlias /cgi-bin-put /usr/local/etc/httpd/cgi-bin-put

Which is great, except I can't quite get it going properly on Win32

Next step: a PUT Wiki.


Kindest Regards,
Sean B. Palmer
@prefix : <> .
:Sean :hasHomepage <> .

Received on Wednesday, 28 March 2001 17:35:42 UTC