Results 1 to 5 of 5

Thread: how to add images on squid error pages?

  1. #1
    Join Date
    Apr 2009
    Location
    Costa Rica
    Beans
    255
    Distro
    Ubuntu 10.04 Lucid Lynx

    Post how to add images on squid error pages?

    well, title says it all. I want that squid error pages have the company logo. I edited the page called ERR_ACCESS_DENIED but the image doesn't show (image its in the same directory as ERR_ACCESS_DENIED).

    I tried png and gif formats to no avail.

    Any tips?

    Also I found this but I don't get what the writer is saying so I cant do it.

    http://www.creative.net.au/evil/squi...ge_pages.shtml

    regards and thanks in advance for the help
    Linux User#498977
    There are only 10 types of people in the world. Those who understand binary, and those who dont.
    My Blog about Linux and other stuff

  2. #2
    Join Date
    Nov 2009
    Location
    Cork, Ireland
    Beans
    53
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: how to add images on squid error pages?

    As I understand it, you have to do the following:

    • Put your image file into /usr/share/squid/icons/
    • Add the following line to /usr/share/squid/mime.conf:
      Code:
      \.uwaicon1$     application/uwa-image-1         yourimagefile.gif
    • Put the link into the html code of your error page:
      Code:
      <img src="http://proxy.server:3128/squid-internal-static/icons/yourimagefile.gif" />
    • restart squid

  3. #3
    Join Date
    Apr 2009
    Location
    Costa Rica
    Beans
    255
    Distro
    Ubuntu 10.04 Lucid Lynx

    Post Re: how to add images on squid error pages?

    hi, thanks for the help, I will try it out and come back with results
    Linux User#498977
    There are only 10 types of people in the world. Those who understand binary, and those who dont.
    My Blog about Linux and other stuff

  4. #4
    Join Date
    Apr 2009
    Location
    Costa Rica
    Beans
    255
    Distro
    Ubuntu 10.04 Lucid Lynx

    Post Re: how to add images on squid error pages?

    Best Way I found out to do it is to get the image on a image hosting website like tinypic, imageshack, photobucket etc.

    Once the image is uploaded edit html code of the page and in the place you had the path to your image saved locally, put the absolute path of the image you just uploaded. eg.

    Code:
    src= "http://img266.imageshack.us/img266/548/companylogo.png"
    I will leave this thread open for a while if you have questions, then mark it as solved.

    cheers
    Linux User#498977
    There are only 10 types of people in the world. Those who understand binary, and those who dont.
    My Blog about Linux and other stuff

  5. #5
    Join Date
    Jun 2007
    Beans
    Hidden!

    Re: how to add images on squid error pages?

    awesome
    Last edited by ghost_ryder35; May 4th, 2010 at 09:09 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •