httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tonix (Antonio Nati)" <to...@interazioni.it>
Subject Re: [users@httpd] FilesMatch problems
Date Wed, 28 Aug 2002 08:58:15 GMT
Jacob,

I've found the problem.

No regex, no FreeBSD, my (!) configuration error.

I made initially

<directory "/">
         <other stuff>
         ................
         order allow,deny
         deny from all
</directory>
<Location "/">
         <other stuff>
         ................
         order deny,allow
         allow from all
</Location>
<Files ~ "^\.ht">
         order allow,deny
         deny from all
</Files>

The error is in configuration, because <Location> are evaluated after all 
<Directory> and <Files> (or <FilesMatch>), so access to .ht* is always granted.

Changing it to:

<directory "/">
         <other stuff>
         ................
</directory>
<Location "/">
         <other stuff>
         ................
</Location>
<Files ~ "^\.ht">
         order allow,deny
         deny from all
</Files>

makes it works.

Thanks,

Tonino

At 27/08/2002 27/08/2002 -0400, you wrote:

> > I did try it on a Linux box, and it works.
> >
> > On my FreeBSD it does not want to work. Could it be a "regex" difference
>on
> > FreeBSD?
>
>Sure sounds that way.  Anybody know if the regex parser in Apache depends on
>any system libraries or utilities?  Might be a bug if not :)
>
>-Jacob
>http://www.listingbook.com
>
>
>---------------------------------------------------------------------
>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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org


------------------------------------------------------------
         Inter@zioni            Interazioni di Antonio Nati
    http://www.interazioni.it      tonix@interazioni.it
------------------------------------------------------------


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message