Change Squid's error message language type In Redhat as three, look at how the language of the error page is set:
[root@lacl-001 squid]# Cat/etc/squid/squid.conf|grep error_directory
# tag:error_directory
#error_directory/etc/squid/errors
# error_directory/etc/squid/errors
[Root@lacl-001 squid]#
We can find that the default error message is/etc/squid/errors under this directory. Let's see what/etc/squid/errors is:
[Root@lacl-001 squid]# Ll/etc/squid/errors
lrwxrwxrwx 1 root root 40 May 15:25/etc/squid/errors-/usr/share/squid/errors/english
[Root@lacl-001 squid]#
Haha, it's a symbolic connection. Since it is called the birds of the bird, let's see what languages we have:
[Root@lacl-001 squid]# Ls/usr/share/squid/errors
Bulgarian Dutch French Italian Polish russian-koi8-r Spanish
Catalan 中文版 German Japanese Portuguese Serbian Swedish
Czech Estonian Hebrew Korean Romanian Simplify_chinese Traditional_chinese
Danish Finnish Hungarian Lithuanian Russian-1251 Slovak Turkish
[Root@lacl-001 squid]#
It's so small. What do we need? Well, change the sign to connect, right?
[root@lacl-001 squid]# ln-s/usr/share/squid/errors/simplify_chinese/etc/squid/errors
[Root@lacl-001 squid]#
Make an error page too much to see the effect--visit http://www.126.co&*&*m/
You will get:
When you try to read the following URLs (URLs): http://www.126.co&*&*m/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.