httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Protecting certain cgi-bin subdirectories
Date Sat, 05 Aug 2006 16:54:56 GMT
On 8/5/06, Steve Swift <> wrote:
> > You need to read:
> >
> I've read that section and also the section on the order in which the
> directives are applied, but what I'm seeing doesn't seem to match the
> documentation, in my opinion.
> > You'll find that <Directory> automatically protects subdirectories, so you
> > don't need that <DirectoryMatch> complication.  You'll also find that the
> > order of processing is important.
> I perhaps hadn't made clear what it was that I'm after:
> /cgi-bin                - open without password protection
> /cgi-bin/admin  - password protected; only user "Swifty"
> /cgi-bin/anyotherdir - password protected; any user
> This seems to require at least one wildcard so that the subdirectories are
> protected without the cgi-bin directory being protected.  I couldn't find a
> way to achieve this with the <Directory> statement. I tried:

Right, I didn't understand that.

Try converting BOTH sections to <Directorymatch> (even thought the
second one will be a trivial regex).  Then the order of processing
will be controlled by the order of listing in the cofnig file.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message