[CentOS] Squid + SquidGuard : static block page not working

Nicolas Kovacs info at microlinux.fr
Wed Mar 14 15:37:45 UTC 2018


Le 14/03/2018 à 14:40, m.roth at 5-cent.us a écrit :
> Stupid questions:
>    0. Does http://nestor.microlinux.lan/avertissement.html exist?
>    1. What are its ownership and group?
>    2. Can Apache access that directory and file?
> 
>     mark

OK, I found the solution. Apparently I have to use a different syntax.

acl {
  admin {
    pass any
  }
  default {
    pass none
    redirect 302:http://nestor.microlinux.lan/avertissement.html
  }
}

Prefixing the block page URL with 302: did the trick.

Cheers,

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : info at microlinux.fr
Tél. : 04 66 63 10 32



More information about the CentOS mailing list