Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: one_two on May 15, 2010, 12:21:59 am
-
I'm unable to customize the access denied page for Dansguardian. I've tried editing the /etc/dansguardian/languages/ukenglish/template.html file and restarting the http proxy module. When I access a URL that is blocked I still get the default access denied page with none of my changes. Any ideas on what I'm doing wrong?
First bit of /etc/dansgaurdian/dansgaurdian.conf
reportinglevel = 3
languagedir = '/etc/dansguardian/languages'
language = ukenglish
loglevel = 3
logexceptionhits = 1
# Log File Format
# 1 = DansGuardian format 2 = CSV-style format
# 3 = Squid Log File Format 4 = Tab delimited
logfileformat = 3
loglocation = '/var/log/dansguardian/access.log'
filterip =
filterport = 3129
proxyip = 127.0.0.1
proxyport = 8080
# accessdeniedaddress is the address of your web server to which the cgi
# dansguardian reporting script was copied
# Do NOT change from the default if you are not using the cgi.
#
accessdeniedaddress = 'http://YOURSERVER.YOURDOMAIN/cgi-bin/dansguardian.pl'
# Non standard delimiter (only used with accessdeniedaddress)
# Default is enabled but to go back to the original standard mode dissable it.
nonstandarddelimiter = on
usecustombannedimage = on
custombannedimagefile = '/usr/share/dansguardian/transparent1x1.gif'
-
Hi,
Make sure you restart the module in the WebUI, as I found that using /etc/init.d/ebox squid restart' didn't cause DansGuardian to reload. I did once restart DansGuardian itself (/etc/init.d/dansguardian restart) but found that the eBox scripts wouldn't restart it properly until I restarted the whole things (/etc/init.d/ebox restart)
Kind regards,
Geoff
p.s. did you modify the original template.html, or create a new one? if you replaced it, make sure the permissions and the case (e.g. template.html *NOT* Template.html) are correct.
-
What screen are you getting?. Maybe is a squid page and in this case you should customize squid's tempaltes too.
This is discussed here -> http://forum.ebox-platform.com/index.php?topic=3092.0
BTW, '/etc/init.d/ebox squid restart' restarts dansguardian if the HTTP proxy module has a configuration that uses it (in other cases dasnguardian is stopped).
-
Hi, for create custom template denied page for dansguardian(squid) u need to go and edit /usr/share/ebox/stubs/squid/template.html.mas
-
For Zental 3.0:
/usr/share/zentyal/stubs/squid
-
For Zental 3.0:
/usr/share/zentyal/stubs/squid
Thanks for the tip Andre
-
Hello, I had the same problem and located the error page users get when trying to access a web under a forbidden category on /usr/share/squid3/es/ERR_ACCESS_DENIED
The problem is that I would like squid to use the other template, located under "/user/share/zentyal/stubs/squid/template.html.mas" because it can be modified to show some variables containing useful information -REASONLOGGED-,-CATEGORIES- etc... The other templates can't show that info. (at least I don't know how)
How could I change that template?
Thanks