Using the Accept-language Header
When clients contact a server using HTTP, they can send header information that
describes the various languages they accept. You can configure your server to
parse this language information as described in Chapter 14, "Content
Management".
You can enable or disable the server to the
server.xml
Table D-1
acceptlanguage
For example, if
Accept-language header with the value
URL:
http://www.example.com/somepage.html
Your server searches for the file in the following order:
The
1.
http://www.example.com/fr_ch/somepage.html
http://www.example.com/somepage_fr_ch.html
http://www.example.com/de/somepage.html
http://www.example.com/somepage_de.html
Language codes without the country codes (
2.
http://www.example.com/fr/somepage.html
http://www.example.com/somepage_fr.html
The
3.
http://www.example.com/en/somepage.html
http://www.example.com/somepage_en.html
360
Netscape Enterprise Server Administrator's Guide • April 2002 (Draft)
file.
International Settings in server.xml
on, off
acceptlanguage
list
Accept-language
, such as
DefaultLanguage
acceptlanguage
Enables or disables the Accept-language
header parsing.
is set to
, and a client sends the
on
, when requesting the following
fr-CH,de
.
fr-CH,de
in the case of
fr
, defined in the
en
directive in the
):
fr-CH
file.
magnus.conf
Need help?
Do you have a question about the NETSCAPE ENTREPRISE SERVER 6.1 - 04-2002 ADMINISTRATOR and is the answer not in the manual?
Questions and answers