Change Squid error message language type

xiaoxiao2021-03-06  131

Change the Squid error message language species in Redhat AS 3, how is the language type of the error page:

[root @ lacl-001 squid] # cat /etc/squid/squid.conf|Grep Error_Directory

# TAG: Error_Directory

#Error_directory / etc / squid / errors

# r_directory / etc / square / errors

[root @ lacl-001 squid] #

We can find that the default error message is / etc / squid / errors under this directory below

Let's take a look at / etc / squid / errors is something:

[root @ lacl-001 squid] # ll / etc / squid / errors

LRWXRWXRWX 1 root root 40 May 22 15:25 / etc / squid / errors -> / usr / share / squid / errors / 中文

[root @ lacl-001 squid] #

Haha, is a symbolic connection. Since it is a bird language, let's see what language is there:

[root @ lacl-001 squid] # ls / usr / share / squid / errors

Bulgarian Dutch French Italian Polish Russian-Koi8-R Spanish

Catalan English 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 really less. What do we need? Simplified Chinese. Well, change the symbol connection, right?

[root @ lacl-001 squid] # ln -s / usr / share / square / errors / simplify_chinese / etc / squid / errors

[root @ lacl-001 squid] #

Over manufacturing an error page to see the effect - Access

http://www.126.co&&&*m/

You can get:

When trying to read the following URL (URL):

http://www.126.co&&&*m/

The following mistakes have occurred:

INVALID URL

Invalid URL

Hey, isn't it very simple?

转载请注明原文地址:https://www.9cbs.com/read-127142.html

New Post(0)