[squid-users] "unknown request" when configured to display custom logo

Amos Jeffries squid3 at treenet.co.nz
Wed Jun 22 14:06:44 UTC 2016


On 22/06/2016 11:58 p.m., reqman wrote:
> squid 3.5.19 on FreeBSD 10.3. The system has a LAN and WAN interface,
> both in private address spaces. System's name is my.host.local,
> listening on LAN at 192.168.0.1:3128. The system is not configured to
> listen on localhost.
> 
> I am trying to replace the squid logo (SN.png) with the logo of my
> agency. To do so:
> 1) I've copied mylogo.png to /usr/local/etc/squid/icons, alongside
> SN.png. Same permissions for both files, same ownership:
> 
>  # ls -laF /usr/local/etc/squid/icons/
> total 36
> drwxr-xr-x  3 root  wheel    512 Jun 22 12:53 ./
> drwxr-xr-x  4 root  squid    512 Jun 22 12:54 ../
> -rw-r--r--  1 root  wheel  12716 May 19 16:15 SN.png
> -rw-r--r--  1 root  wheel   7863 Jun 22 12:08 mylogo.png
> drwxr-xr-x  2 root  wheel   1536 May 27 14:17 silk/
> 
> 2) I've edited /usr/local/etc/squid/errorpage.css and replaced
> /squid-internal-static/icons/SN.png with
> /squid-internal-static/icons/mylogo.png
> 

Okay, so far thats all correct.

The final step is to edit the /usr/local/etc/squid/mime.conf config file
and replace the "SN.png" listed there for internal-logo with your image
filename.
 Then squid -k reconfigure to load the change.

As Eliezer said Squid is not a generic web server. So getting it to
serve things up is a bit of arcane voodoo and this is close to the limit
of what is possible.

Amos



More information about the squid-users mailing list