Giter VIP home page Giter VIP logo

htgroupcontrol's Introduction

*OLD OBSOLETE UNSUPPORTED*

Access control mechanism

This is a manager for Apache group files.

Suppose you have a WebDAV directory tree rooted at $docs (see modutil.pl).
Add an .htaccess file to restrict access. In this file, also add:

AuthGroupFile /etc/accesscontrol/groupcontrol

Put all the files from the distribution in some CGI-executable place and
protect it with the included htaccess file (which you might have to rename from
htaccess to .htaccess).

Now edit modutil.pl and fix the file paths at the top. Watch out for the path
to $file -- this should be same as AuthGroupFile above. The groupcontrol file,
wherever you put it, must be writeable and readable by the web server.

Add .htacess files to the sub-directories like so:

<Limit MKCOL PUT DELETE LOCK UNLOCK COPY MOVE PROPPATCH POST OPTIONS PROPFIND>
Require Group dirname_write
</Limit>
<Limit GET PROPFIND PROPPATCH>
Require Group dirname_read
</Limit>


or, point your browser to moddir.pl, which creates directories and sets up the
.htaccess for you.

dirname is the name of the sub-directory. Instead of "Require Group (whatever)"
you can also have "Require valid-user" to allow allow authenticated people
access to the resource. See your web-server's documentation.

This assumes WebDAV. If you have a plain directory tree, or something else,
please see your web server documentation.


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.