Re: ACL time ban on selected day

From: Tomasz Papszun <papszun@dont-contact.us>
Date: Mon, 22 Jun 1998 17:43:49 +0200 (MET DST)

On Mon, 22 Jun 1998, Francis A. Vidal wrote:
(...)
> acl weekdays time MTWHF 07:30-18:30 # monday to friday
> acl weekends time AS 07:30-13:00 # saturdays and sundays
>
> http_access allow clients weekdays weekends
>
> or should it be
>
> http_access allow clients weekdays
> http_access allow clients weekends
>

The latter ones. Matching the first one is impossible because acls are
"ANDed" and there can be no weekday and weekend simultaneously.

From FAQ 10.5:

     * All elements of an acl entry are OR'ed together.
     * All elements of an access entry are AND'ed together. e.g.
       http_access and icp_access.
   For example, the following access control configuration will never
   work:
        acl ME src 10.0.0.1
        acl YOU src 10.0.0.2
        http_access allow ME YOU

I hope I'm not saying a bullshit...

Tomek
-- Tomasz Papszun, Lodz, Poland tomek@lodz.tpsa.pl
Received on Mon Jun 22 1998 - 08:48:52 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:40:47 MST