The given regex is not correct for matching domain names. The regex you gave 
matches  <star> <some character> "server" <some character> "com," <anything>
If you want to match the whole domain server.com then use a dstdomain acl 
with the pattern
.server.com
Or if you insist on using regexes, use dstdom_regex with the pattern
\.server\.com$
^server\.com$
Regards
Henrik
On Tuesday 13 November 2001 12.02, Christoph Krempe wrote:
> --On Montag, November 12, 2001 22:49:22 +0100 Henrik Nordstrom
>
> <hno@squid-cache.org> wrote:
> > Sure, if you use regex based acl types instead of an IP based one.
> >
> > Note: for the first it is generally better to use the dstdomain acl
> > type.
>
> Perhaps you can show me the rigth expression.
> I want to give acces only to hosts *.server.com.
> Together with
>
> acl cdromURL dstdom_regex "/usr/share/squid/acl/positiv.url"
>
> in squid.conf I use
>
> ^\*.server.com,
>
> in the file positiv.url but this doesn't work, I get no access to
> www.server.com. With
>
> *.server.com I get an error message from squid.
>
> Thanks,
>
>   Gruss
>    Ch. Krempe
>   ________________________________________________________________________
>
>    Freie Universitaet Berlin     Christoph Krempe
>     Universitaetsbibliothek
>       - Rechenzentrum -          Systemverwaltung
>    Garystrasse 39
>    14195 Berlin
>    Germany                       Tel: +0049/30/838 54583
>                                  Fax: +0049/30/838 54582
>                                  e-mail: ck@ub.fu-berlin.de
>                                  URL:http://www.ub.fu-berlin.de/~ck
>   ________________________________________________________________________
Received on Tue Nov 13 2001 - 04:40:59 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:04:09 MST