ÕâÊÇ×îºóµÄApache_ht
ÁúÔÚÌìÑÄ · 2004-05-12
·µ»ØÊ×Ò³
|
BLOGBUS
½²»°ÕûÀí
Hi
¼ÇÊÂ
ÕâÊÇ×îºóµÄMT_mt.cfg ,½ØÖÁ17£º30
ÕâÊÇ×îºóµÄApache_httpd.conf ,½ØÖÁ17£º30
Movable Type °²ÑbÖ¸Òý
OurInternet_mt mt.cfg
OurInternet_mt httpd.conf
mt.cfg
Îҵĵç×ÓÓÊÏäºÍÍøÖ¾µØÖ·
<<<Movable Type °²ÑbÖ¸Òý
|
·µ»ØÊ×Ò³
|
ÕâÊÇ×îºóµÄMT_mt.cfg ,½ØÖÁ17£º30>>>
ÕâÊÇ×îºóµÄApache_httpd.conf ,½ØÖÁ17£º30
ÁúÔÚÌìÑÄ
·¢±íÓÚ
2004-05-12
#
# ×î³õÓÉ Rob McCool »ùÓÚ NCSA server ÅäÖÃÎļþ
#
### Section 1: Global Environment
# ServerType ¶¨ÒåΪ inetd »ò standalone Ö®Ò»£¬Inetd ģʽֻÓÃÓÚ Unix ƽ̨
ServerType standalone
# Ö÷»ú·¾¶
ServerRoot "D:/usr/local/apache"
# PidFile ·¾¶
PidFile logs/httpd.pid
#
# ScoreBoardFile: File used to store internal server process information.
# Not all architectures require this. But if yours does (you'll know because
# this file will be created when you run Apache) then you *must* ensure that
# no two invocations of Apache share the same scoreboard file.
#
ScoreBoardFile logs/apache_runtime_status
#
# In the standard configuration, the server will process httpd.conf (this
# file, specified by the -f command line option), srm.conf, and access.conf
# in that order. The latter two files are now distributed empty, as it is
# recommended that all directives be kept in a single file for simplicity.
# The commented-out values below are the built-in defaults. You can have the
# server ignore these files altogether by using "/dev/null" (for Unix) or
# "nul" (for Win32) for the arguments to the directives.
#
#ResourceConfig nul
#AccessConfig nul
# ³¬Ê±(Ãë)
Timeout 300
# ³Ö¾ÃÁ¬½Ó
KeepAlive On
# ×î´ó³Ö¾ÃÁ¬½ÓÇëÇó
MaxKeepAliveRequests 100
# ³Ö¾ÃÁ¬½Ó³¬Ê±(Ãë)
KeepAliveTimeout 15
# ÿ¸ö×Ó½ø³Ì×î´óÇëÇó(0=ÎÞÏÞ)
MaxRequestsPerChild 0
# ÿ¸ö×Ó½ø³ÌÏß³Ì
ThreadsPerChild 50
# ¼àÌý
#Listen 3000
#Listen 12.34.56.78:80
#
# ÏÞÖÆµØÖ·
#BindAddress *
# ×¢Ò⣺ģ¿é¼ÓÔØË³ÐòºÜÖØÒª£¬ÔÚûÓÐר¼Ò½¨ÒéµÄÇé¿öϲ»ÒªËæ±ã¸Ä¶¯¡£
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule status_module modules/mod_status.so
#LoadModule info_module modules/mod_info.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule anon_auth_module modules/mod_auth_anon.so
#LoadModule dbm_auth_module modules/mod_auth_dbm.so
#LoadModule digest_auth_module modules/mod_auth_digest.so
#LoadModule digest_module modules/mod_digest.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
# [ÎÞÂÛÄãÉÏÃæ¸Ä±äÁËʲôģ¿é£¬ÔÚÕâÀï×öͬÑù¸Ä±ä£¡]
ClearModuleList
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
#AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
#AddModule mod_status.c
#AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_isapi.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
#AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
#AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
#AddModule mod_auth_anon.c
#AddModule mod_auth_dbm.c
#AddModule mod_auth_digest.c
#AddModule mod_digest.c
#AddModule mod_proxy.c
#AddModule mod_cern_meta.c
#AddModule mod_expires.c
#AddModule mod_headers.c
#AddModule mod_usertrack.c
#AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
# À©Õ¹Çé¿ö
#ExtendedStatus On
### ²¿·Ö 2: Ö÷»úÅäÖÃ
# ¶Ë¿Ú
Port 80
# Ö÷»ú¹ÜÀíÔ±ÐÅÏä
ServerAdmin
webmaster@localhost
# Ö÷»úÃû
ServerName localhost
# ÎĵµÂ·¾¶
DocumentRoot "D:/usr/www/html"
# ¾ø¶ÔÏÞÖÆÐí¿É
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# ÎĵµÂ·¾¶È¨ÏÞÉèÖÃ
<Directory "D:/usr/www/html">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Óû§Â·¾¶
<IfModule mod_userdir.c>
UserDir "D:/usr/local/apache/users/"
</IfModule>
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory "D:/usr/local/apache/users">
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# <Limit GET POST OPTIONS PROPFIND>
# Order allow,deny
# Allow from all
# </Limit>
# <LimitExcept GET POST OPTIONS PROPFIND>
# Order deny,allow
# Deny from all
# </LimitExcept>
#</Directory>
# Ë÷ÒýÎļþ
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php index.phtml index.php3
</IfModule>
# ·ÃÎÊ¿ØÖÆÎļþÃû
AccessFileName access.ht
# ·ÀÖ¹·ÃÎÊ¿ØÖÆÎļþ±»·ÃÎÊÕ߲쿴
<Files ~ "^\access.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
# »º´æÐÒé
#CacheNegotiatedDocs
# ʹÓù淶Ãû³Æ
UseCanonicalName On
# ÀàÐÍÉèÖÃ
<IfModule mod_mime.c>
TypesConfig conf/mime.types
</IfModule>
# ĬÈÏÐÒé
DefaultType text/plain
# ħÊõÉèÖÃ
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
# Ö÷»úÃû²éÕÒ
HostnameLookups Off
# ´íÎó¼Ç¼
ErrorLog logs/error.log
# ¼Ç¼µÈ¼¶£¬°üÀ¨£ºdebug, info, notice, warn, error, crit, alert, emerg.
LogLevel error
# ¼Ç¼¸ñʽ
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# ·ÃÎʼǼ
CustomLog logs/access.log common
#
# If you would like to have agent and referer logfiles, uncomment the
# following directives.
#
#CustomLog logs/referer.log referer
#CustomLog logs/agent.log agent
#
# If you prefer a single logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog logs/access.log combined
# ·þÎñÆ÷Ç©Ãû
# Ñ¡ÔñÒ»¸ö£º On | Off | EMail
ServerSignature On
# PHP [Ä£¿é·½Ê½ÔËÐÐ]
LoadModule php4_module D:/usr/local/php/php4apache.dll
# PHP [CGI ·½Ê½ÔËÐÐ]
#ScriptAlias /php/ "D:/usr/local/php/"
#Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php .php3 .phtml
# CGI ½Å±¾½âÊÍ·¾¶
#!D:/usr/bin/perl
# ±ðÃû¿ªÊ¼
<IfModule mod_alias.c>
Alias /icons/ "D:/usr/local/apache/icons/"
<Directory "D:/usr/local/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# ½Å±¾Â·¾¶±ðÃû
ScriptAlias /mt/ "D:/usr/www/mt/"
<Directory "D:/usr/www/mt">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
</IfModule>
# ±ðÃû½áÊø
# ×Ô¶¯Ë÷ÒýĿ¼ÏÂËùÓÐÎļþ
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
# Readme ÎļþÃû¼° Header ÎļþÃû
ReadmeName README.txt
HeaderName HEADER.txt
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>
# ½áÊø×Ô¶¯Ë÷Òý
# ÎĵµÀàÐÍ
<IfModule mod_mime.c>
AddType application/x-tar .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
# ÓïÑÔ
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cs .cz .cs
AddLanguage ru .ru
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
AddCharset GB2312 .Gb2312 .gb
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
# ÓïÑÔÓÅÏÈ˳Ðò
<IfModule mod_negotiation.c>
LanguagePriority cn en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>
# ÔÊÐíÖ´ÐеÄCGIÀ©Õ¹Ãû
AddHandler cgi-script .cgi .pl
# To use server-parsed HTML files
#
#AddType text/html .shtml
#AddHandler server-parsed .shtml
#
# Uncomment the following line to enable Apache's send-asis HTTP file
# feature
#
#AddHandler send-as-is asis
#
# If you wish to use server-parsed imagemap files, use
#
#AddHandler imap-file map
#
# To enable type maps, you might want to use
#
#AddHandler type-map var
</IfModule>
# ÎĵµÀàÐͽáÊø
#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#
#
# MetaDir: specifies the name of the directory in which Apache can find
# meta information files. These files contain additional HTTP headers
# to include when sending the document
#
#MetaDir .web
#
# MetaSuffix: specifies the file name suffix for the file containing the
# meta information.
#
#MetaSuffix .meta
#
# Customizable error response (Apache style)
# these come in three flavors
#
# 1) plain text
#ErrorDocument 500 "The server made a boo boo.
# n.b. the single leading (") marks it as text, it does not get output
#
# 2) local redirects
#ErrorDocument 404 /missing.html
# to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
# N.B.: You can redirect to a script or a document using server-side-includes.
#
# 3) external redirects
#ErrorDocument 402
http://www.example.com/subscription_info.html
# N.B.: Many of the environment variables associated with the original
# request will *not* be available to such a script.
# ¶¨ÖÆä¯ÀÀÆ÷ÌØÕ÷
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
# ¶¨ÖÆä¯ÀÀÆ÷ÌØÕ÷½áÊø
#
# Allow server status reports, with the URL of
http://servername/server-status
# Change the "localhost" to match your domain to enable.
#
#<Location /server-status>
# SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from localhost
#</Location>
#
# Allow remote server configuration reports, with the URL of
#
http://servername/server-info
(requires that mod_info.c be loaded).
# Change the "localhost" to match your domain to enable.
#
#<Location /server-info>
# SetHandler server-info
# Order deny,allow
# Deny from all
# Allow from localhost
#</Location>
#
# There have been reports of people trying to abuse an old bug from pre-1.1
# days. This bug involved a CGI script distributed as a part of Apache.
# By uncommenting these lines you can redirect these attacks to a logging
# script on phf.apache.org. Or, you can record them yourself, using the script
# support/phf_abuse_log.cgi.
#
#<Location /cgi-bin/phf*>
# Deny from all
# ErrorDocument 403
http://phf.apache.org/phf_abuse_log.cgi
#</Location>
### ²¿·Ö 3: ÐéÄâÖ÷»ú
# »ùÓÚÃû³ÆµÄÐéÄâÖ÷»úʾÀý£º
#<VirtualHost *:80>
# ServerAdmin
webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
2004-05-12
|
Trackback(0)
|
±à¼
¿´ÁËÕâЩÎÄ×Ö£¬ÓÐÈË˵ÁËÒÔÏÂһЩ»°£º
原始快照:web.archive.org