Search squid archive

Re: squid 3.1 and error_directory

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

 



Eugene M. Zheganin wrote:
Hi.

Recently I decided to look on 3.1 branch on my test proxy. Everything seems to work fine, but I'm stuck with the problem with the error messages. Whatever I do with the error_directory/error_default_language settings (leaving 'em commented out, or setting 'em to something) in my browser I see corrupted symbols. These are neither latin, nor cyrillic. They do look like it is UTF-8 treated like Cp1251, for example. Changing encoding of the page in browser doesn't help.
And the charset in <meta/> tag of such page is always "us-ascii" (why ?).

Um, thank you. I've seen something like this before. Will get on and check the fix.

The symbols you are seeing is probably UTF-8 treated as us-ascii. I've seen it as an artifact of 'tidy html' which is used by default on the translation toolkit we build the error pages with. I just have to check that is true and update the sources to leave the generated files slightly mangled.


How can I make pages be displayed at least in english ? I thought that this can be achieved by setting error_default_language to en, but I was wrong again.

I thought I am familiar with squid error directory and creating my own templates for 2.x/3.0 branches, but definitely I'm not with the 3.1

They are almost the same. The base templates are in templates/ERR_* for copying and adding your own ones in templates/* too.

That is the big difference, that your local templates always go in templates/* or a custom directory (with error_default_language pointing at it).

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE23
  Current Beta Squid 3.1.0.16

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

  Powered by Linux