Web-server – images not displaying with squid proxy page

htmlPROXYsquidweb-server

We are using a Red Hat 6 squid server to redirect HTTP request for custom notifications. Squid provides several built in splash pages however we are using a slightly customized one taken from a built in and just renamed it. When our splash page appears our custom image does not. The image on the web page is just a square with an x through it. The image file is on the squid server but the squid logs I think it tells the story. I just don't know how to fix. For example, there is a GET HTTP function that seems to want to append the name of whatever site the end user is going to, to the actual image location:

1457051968.734     14 192.168.150.125 TCP_DENIED/403 2881 GET http://www.google.com/images/image.png - NONE/- text/html

Problem is my image is not at Google but on the squid server. How can I override this? I have tried setting an absolute path in the splash page but that did not work. Here is what I have now:

<img src="images/image.png" height="150" width="250" />

The images folder is under /var/www/html/ and squid has rights to that folder. Any help is appreciated.

Best Answer

This depends on your static resource path set in the squid config. Relevant directives for this are set in

error_directory # path to message files
icon_directory # path to icon/image files

The path to the embedded image should be like this:

/squid-internal-static/icons/SN.png

squid-internal-static points to your icon_directory.