Search squid archive

Re: error files shipped on squid-3.2.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23/11/2012 8:27 a.m., Leonardo Rodrigues wrote:

    Hi,

I'm migrating some squid 2.7 servers directly to 3.2.3. One of the things that is actually annoying me on my testserver is that error files provided in squid-3.2 are always ONE-line-only, instead of the 2.7 ones which were formatted similary to HTML files.

The one-line-only doesnt matter for being correctly displayed on the browser, i know. But that makes a real pain to customize them.

    Is this one-line-only error files needed for some reason ??

I have checked several languages and seems all files on all languages are one-line-only. Dont know if it matters but i'll use, in production, the pt-br ones.


Firstly, what is wrong with them that needs fixing by text editor?

Secondly, edit the templates/ERR_* file and save over top of the other auto-generated one. Only the auto-generated files are in compact format.

Thirdly a note: if you are using them right then your clients browser tells Squid what language they can read and Squid supplies the appropriate message text they can read and understand. People moving around with laptops and phones set to strange languages are common these days.


For display changes use /etc/squid/errorpage.css

For completely new custom errors, use deny_info.

For replacing templates copy the template/* file and make your changes then save it over the other one.

Amos



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux