# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
# Listen 12.34.56.78:80
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
# You must correct the path for the root to match your system's configured
# user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minor | Minimal | Major | Prod
# where Full conveys the most information, and Prod the least.
ServerTokens Full
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
ForceLanguagePriority Prefer Fallback
# Allow from server status reports generated by mod_status,
# Allow from remote server configuration reports, with the URL of
# Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
# Listen 12.34.56.78:80
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
# You must correct the path for the root to match your system's configured
# user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minor | Minimal | Major | Prod
# where Full conveys the most information, and Prod the least.
ServerTokens Full
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
ForceLanguagePriority Prefer Fallback
# Allow from server status reports generated by mod_status,
# Allow from remote server configuration reports, with the URL of
# Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# URL:http://httpd.apache.org/docs-2.0/vhosts/
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
NameVirtualHost localhost:80#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module "modules/mod_foo.so"
LoadModule php4_module C:/php/sapi/php4apache2.dll"LoadModule access_module "modules/mod_access.so"
LoadModule actions_module "modules/mod_actions.so"
LoadModule alias_module "modules/mod_alias.so"
LoadModule asis_module "modules/mod_asis.so"
LoadModule auth_module "modules/mod_auth.so"
# LoadModule auth_anon_module "modules/mod_auth_anon.so"
# LoadModule auth_dbm_module "modules/mod_auth_dbm.so"
# LoadModule auth_digest_module "modules/mod_auth_digest.so"
LoadModule autoindex_module "modules/mod_autoindex.so"
# LoadModule cern_meta_module "modules/mod_cern_meta.so"
LoadModule cgi_module "modules/mod_cgi.so"
# LoadModule dav_module "modules/mod_dav.so"
# LoadModule dav_fs_module "modules/mod_dav_fs.so"
LoadModule dir_module "modules/mod_dir.so"
LoadModule env_module "modules/mod_env.so"
# LoadModule expires_module "modules/mod_expires.so"
# LoadModule file_cache_module "modules/mod_file_cache.so"
# LoadModule headers_module "modules/mod_headers.so"
LoadModule imap_module "modules/mod_imap.so"
LoadModule include_module "modules/mod_include.so"
# LoadModule info_module "modules/mod_info.so"
LoadModule isapi_module "modules/mod_isapi.so"
LoadModule log_config_module "modules/mod_log_config.so"
LoadModule mime_module "modules/mod_mime.so"
# LoadModule mime_magic_module "modules/mod_mime_magic.so"
# LoadModule proxy_module "modules/mod_proxy.so"
# LoadModule proxy_connect_module "modules/mod_proxy_connect.so"
# LoadModule proxy_http_module "modules/mod_proxy_http.so"
# LoadModule proxy_ftp_module "modules/mod_proxy_ftp.so"
LoadModule negotiation_module "modules/mod_negotiation.so"
# LoadModule rewrite_module "modules/mod_rewrite.so"
LoadModule setenvif_module "modules/mod_setenvif.so"
# LoadModule speling_module "modules/mod_speling.so"
# LoadModule status_module "modules/mod_status.so"
# LoadModule unique_id_module "modules/mod_unique_id.so"
LoadModule userdir_module "modules/mod_userdir.so"
# LoadModule usertrack_module "modules/mod_usertrack.so"
# LoadModule vhost_alias_module "modules/mod_vhost_alias.so"
# LoadModule ssl_module "modules/mod_ssl.so"
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
# ExtendedStatus On
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-twAddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
试试
系统盘:\windows\system32
下
# LoadModule foo_module "modules/mod_foo.so"
LoadModule php4_module C:/php/sapi/php4apache2.dll"
他的httpd.conf中多了半边分号
===============================
你的方法果然好用。但这样改行吗?
我以前也遇到同样的问题