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 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.


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 points to your icon_directory.

  • ok I added "icon_directory /usr/local/squid/share/icons" to my squid.conf. How should it be referenced in my splash page HTML? Currently I have <img src="image.png" height="150" width="250" />. And this is still not working. – user53029 Mar 4 '16 at 13:37
  • Logs still show Logs still show TCP_DENIED/403 2897 GET google.com/usr/share/squid/icons/image.png - NONE/- text/html – user53029 Mar 4 '16 at 13:43
  • you have to create an image URI that starts with "/squid-internal-static" like i've written above. So your uri would be "/squid-internal-static/image.png". /squid-internal-static/image.png points to /usr/local/squid/share/icons/image.png – Daniel Nachtrub Mar 4 '16 at 14:12
  • That's what I did. Here is what I have now. Squid conf = "icon_directory /usr/local/squid/share/icons". HTML splash page img tag = <img src="/squid-internal-static/image.png" height="150" width="250" /> = Now in the logs it shows TCP_DENIED/403 3051 GET localhost:3128/squid-internal-static/image.png - NONE/- text/html and still no image displayed. – user53029 Mar 4 '16 at 14:20
  • we're using a similar setup with current build of squid - it's working with this setup. maybe there's a policy that rejects the request to the proxy itself and therefore the image cannot be delivered. URI looks good. – Daniel Nachtrub Mar 4 '16 at 15:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.