Apache and PUT

Apache and PUT

Post by Scott D. MacKa » Wed, 12 Mar 1997 04:00:00



Hello,
    I am trying to configure a PUT script (binary, actually) to
work with the Apache server (1.2b7).  I would like to configure
it such that acess to 'put' to different areas require
different user authentication.  From the look of it, I can only
see how to restrict access to the put script.

Is there an easy way to do this?  If not, is there a way to pass
the curretly validated username to the PUT script (so the PUT
script can compare the authenticated name, and requested path
and determine if they are allowed).

If it is a method too simple to explain here, pointing me to the
appropriate docs to read would be cool.  I have not had much luck
finding materials on PUT.

-Scott MacKay

 
 
 

Apache and PUT

Post by Hans Svensso » Thu, 13 Mar 1997 04:00:00



> Hello,
>     I am trying to configure a PUT script (binary, actually) to
> work with the Apache server (1.2b7).  I would like to configure
> it such that acess to 'put' to different areas require
> different user authentication.  From the look of it, I can only
> see how to restrict access to the put script.

> Is there an easy way to do this?  If not, is there a way to pass
> the curretly validated username to the PUT script (so the PUT
> script can compare the authenticated name, and requested path
> and determine if they are allowed).

> If it is a method too simple to explain here, pointing me to the
> appropriate docs to read would be cool.  I have not had much luck
> finding materials on PUT.

I think PUT is a method just like GET or POST and therefore you can
easily
make restrictions in your .htaccess file (or other config file)

<Limit PUT>
reguire group somegroup
<Limit>

Also , don't forget to make an addition in your srm.conf

Script PUT /cgi-bin/nph-publish

where nph-publish is your PUT-script

Best
/Hans