How to enable apache2 to display Chinese webpages

Source: Internet
Author: User
Article Title: How to enable apache2 to show Chinese webpages. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I use mandrake 9.0
Apache2
I have changed the following
Adddefacharcharset Big5
LanguagePriority tw en da nl et fr de el it ja ko no pl pt-br ltz ca es sv tw
# Adddefacharset ISO-8859-1
But still cannot be displayed
  
Do you have any comments?
  
The content of my httpd. conf is as follows:
  
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains
# Configuration directives that give the server its instructions.
# See For detailed information about
# The directives.
#
# Do NOT simply read the instructions in here without understanding
# What they do. They're here only as hints or reminders. If you are unsure
# Consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
#1. Directives that control the operation of the Apache server process as
# Whole (the 'global environment ').
#2. Directives that define the parameters of the 'main' or 'default' server,
# Which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# Of all virtual hosts.
#3. Settings for virtual hosts, which allow Web requests to be sent
# Different IP addresses or hostnames and have them handled by
# Same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for example
# Of the server's control files begin with "/" (or "drive:/" for Win32),
# Server will use that explicit path. If the filenames do * not * begin
# With "/", the value of ServerRoot is prepended -- so "logs/foo. log"
# With ServerRoot set to "/usr/local/apache2" will be interpreted by
# Server as "/usr/local/apache2/logs/foo. log ".
#
  
### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# Such as the number of concurrent requests it can handle or where it
# Can find its configuration files.
#
  
#
# ServerRoot: The top of the directory tree under which the server's
# Configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# Mounted filesystem then please read the LockFile documentation (available
# );
# You will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/usr/local/apache2"
  
#
# The accept serialization lock file must be stored on a local disk.
#
  
  
# LockFile logs/accept. lock
  
  
  
#
# ScoreBoardFile: File used to store internal server process information.
# If unspecified (the default), the scoreboard will be stored in
# Anonymous shared memory segment, and will be unavailable to third-party
# Applications.
# If specified, ensure that no two invocations of Apache share the same
# Scoreboard file. The scoreboard file must be stored on a local disk.
#
  
  
# ScoreBoardFile logs/apache_runtime_status
  
  
  
  
#
# PidFile: The file in which the server shoshould record its process
# Identification number when it starts.
#
  
PidFile/var/log/httpd. pid
  
  
#
# Timeout: The number of seconds before between es and sends time out.
#
Timeout 300
  
#
# KeepAlive: Whether or not to allow persistent connections (more
# One request per connection). Set to "Off" to deactivate.
#
KeepAlive On
  
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# During a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
  
#
# KeepAliveTimeout: Number of seconds to wait for the next request from
# Same client on the same connection.
#
KeepAliveTimeout 15
  
##
# Server-Pool Size Regulation (MPM specific)
##
  
# Prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
  
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 30
MaxRequestsPerChild 0
  
  
# Worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
  
StartServers 2
MaxClients 30
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
  
  
# Perchild MPM
# NumServers: constant number of server processes
# StartThreads: initial number of worker threads in each server process
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# MaxThreadsPerChild: maximum number of worker threads in each server process
# MaxRequestsPerChild: maximum number of connections per server process
  
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
  
  
# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum number of requests a server process serves
  
ThreadsPerChild 250
MaxRequestsPerChild 0
  
  
# BeOS MPM
# StartThreads: how many threads do we initially spawn?
# MaxClients: max number of threads we can have (1 thread = 1 client)
# MaxRequestsPerThread: maximum number of requests each thread will process
  
StartThreads 10
MaxClients 30
# MaxRequestsPerThread 10000
  
  
# NetWare MPM
# ThreadStackSize: Stack size allocated for each worker thread
# StartThreads: Number of worker threads launched at server startup
# MinSpareThreads: Minimum number of idle threads, to handle request spikes
# MaxSpareThreads: Maximum number of idle threads
# MaxThreads: Maximum number of worker threads alive at the same time
# MaxRe
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.