How do I change Apache's default language?

To globally change your Apache web server language settings, you will need to make some changes to your Apache configuration file (/etc/httpd/conf/httpd.conf). The following example below assumes you want to change the default language to German, or "de".

  1. Change the line that reads:

    # DefaultLanguage nl
    to
    DefaultLanguage de

  2. Change the line that reads:

    LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
    to
    LanguagePriority de en ca cs da el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

    (That is, move "de" to the first entry in the list.)

  3. Change the line that reads:

    AddDefaultCharset UTF-8
    to
    AddDefaultCharset ISO-8859-1

You will need to make these changes with a Unix/Linux editor, or the control panel using the Unix (LF) option, rather than with a windows/DOS based editor so that you have the proper line endings.

Once you have made these changes, restart your web server for these changes to take effect. To restart your web serverin your HSPC control panel go to System tab > Server Management > Web Server. Click on the Restart button to restart your web server.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Setting up Ruby on Rails on a "High Performance VPS" plan

Setting up Ruby on Rails on a "High Performance VPS" planAfter you have ordered the VPS, if you...

Can AWStats show a visitor's location?

To display the country codes requires that the following line is configured in the awstats...

How do I remove a site, hostname, or domain name from my VPS in the HSPC control panel?

First, back up any data you wish to save relating to any site or domain you will be deleting....

How do I configure one hostname to be an alias for another hostname in HSPC?

If the domain name you wish to forward from has not been added to HSPC, you will need to create...

How to change the default character set for a website

To change the default character set for all sites on a Apache web server, you will need to edit...

Powered by WHMCompleteSolution