⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpd-win.conf

📁 最新apache的源代码
💻 CONF
📖 第 1 页 / 共 3 页
字号:
## Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)# Norwegian (no) - Polish (pl) - Portugese (pt)# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)#AddLanguage ca .caAddLanguage cs .cz .csAddLanguage da .dkAddLanguage de .deAddLanguage el .elAddLanguage en .enAddLanguage eo .eoAddLanguage es .esAddLanguage et .etAddLanguage fr .frAddLanguage he .heAddLanguage hr .hrAddLanguage it .itAddLanguage ja .jaAddLanguage ko .koAddLanguage ltz .ltzAddLanguage nl .nlAddLanguage nn .nnAddLanguage no .noAddLanguage pl .poAddLanguage pt .ptAddLanguage pt-BR .pt-brAddLanguage ru .ruAddLanguage sv .svAddLanguage zh-CN .zh-cnAddLanguage zh-TW .zh-tw## LanguagePriority allows you to give precedence to some languages# in case of a tie during content negotiation.## Just list the languages in decreasing order of preference. We have# more or less alphabetized them here. You probably want to change this.#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## 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## Commonly used filename extensions to character sets. You probably# want to avoid clashes with the language extensions, unless you# are good at carefully testing your setup after each change.# See http://www.iana.org/assignments/character-sets for the# official list of charset names and their respective RFCs.#AddCharset ISO-8859-1  .iso8859-1 .latin1AddCharset ISO-8859-2  .iso8859-2 .latin2 .cenAddCharset ISO-8859-3  .iso8859-3 .latin3AddCharset ISO-8859-4  .iso8859-4 .latin4AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ruAddCharset ISO-8859-6  .iso8859-6 .latin6 .arbAddCharset ISO-8859-7  .iso8859-7 .latin7 .grkAddCharset ISO-8859-8  .iso8859-8 .latin8 .hebAddCharset ISO-8859-9  .iso8859-9 .latin9 .trkAddCharset ISO-2022-JP .iso2022-jp .jisAddCharset ISO-2022-KR .iso2022-kr .kisAddCharset ISO-2022-CN .iso2022-cn .cisAddCharset Big5        .Big5       .big5# For russian, more than one charset is used (depends on client, mostly):AddCharset WINDOWS-1251 .cp-1251   .win-1251AddCharset CP866       .cp866AddCharset KOI8-r      .koi8-r .koi8-ruAddCharset KOI8-ru     .koi8-uk .uaAddCharset ISO-10646-UCS-2 .ucs2AddCharset ISO-10646-UCS-4 .ucs4AddCharset UTF-8       .utf8# The set below does not map to a specific (iso) standard# but works on a fairly wide range of browsers. Note that# capitalization actually matters (it should not, but it# does for some browsers).## See http://www.iana.org/assignments/character-sets# for a list of sorts. But browsers support few.#AddCharset GB2312      .gb2312 .gb AddCharset utf-7       .utf7AddCharset utf-8       .utf8AddCharset big5        .big5 .b5AddCharset EUC-TW      .euc-twAddCharset EUC-JP      .euc-jpAddCharset EUC-KR      .euc-krAddCharset shift_jis   .sjis## AddType allows you to add to or override the MIME configuration# file mime.types for specific file types.##AddType application/x-tar .tgz## AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress# information on the fly. Note: Not all browsers support this.# Despite the name similarity, the following Add* directives have nothing# to do with the FancyIndexing customization directives above.##AddEncoding x-compress .Z#AddEncoding x-gzip .gz .tgz## If the AddEncoding directives above are commented-out, then you# probably should define those extensions to indicate media types:#AddType application/x-compress .ZAddType application/x-gzip .gz .tgz## AddHandler allows you to map certain file extensions to "handlers":# actions unrelated to filetype. These can be either built into the server# or added with the Action directive (see below)## To use CGI scripts outside of ScriptAliased directories:# (You will also need to add "ExecCGI" to the "Options" directive.)##AddHandler cgi-script .cgi## For files that include their own HTTP headers:##AddHandler send-as-is asis## For server-parsed imagemap files:##AddHandler imap-file map## For type maps (negotiated resources):# (This is enabled by default to allow the Apache "It Worked" page#  to be distributed in multiple languages.)#AddHandler type-map var## Filters allow you to process content before it is sent to the client.## To parse .shtml files for server-side includes (SSI):# (You will also need to add "Includes" to the "Options" directive.)##AddType text/html .shtml#AddOutputFilter INCLUDES .shtml## 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### Customizable error responses come in three flavors:# 1) plain text 2) local redirects 3) external redirects## Some examples:#ErrorDocument 500 "The server made a boo boo."#ErrorDocument 404 /missing.html#ErrorDocument 404 "/cgi-bin/missing_handler.pl"#ErrorDocument 402 http://www.example.com/subscription_info.html### Putting this all together, we can internationalize error responses.## We use Alias to redirect any /error/HTTP_<error>.html.var response to# our collection of by-error message multi-language collections.  We use # includes to substitute the appropriate text.## You can modify the messages' appearance without changing any of the# default HTTP_<error>.html.var files by adding the line:##   Alias /error/include/ "/your/include/path/"## which allows you to create your own set of files by starting with the# @exp_errordir@/include/ files and copying them to /your/include/path/, # even on a per-VirtualHost basis.  The default include files will display# your Apache version number and your ServerAdmin email address regardless# of the setting of ServerSignature.## The internationalized error documents require mod_alias, mod_include# and mod_negotiation.  To activate them, uncomment the following 30 lines.#    Alias /error/ "@exp_errordir@/"##    <Directory "@exp_errordir@">#        AllowOverride None#        Options IncludesNoExec#        AddOutputFilter Includes html#        AddHandler type-map var#        Order allow,deny#        Allow from all#        LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr#        ForceLanguagePriority Prefer Fallback#    </Directory>##    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var#    ErrorDocument 410 /error/HTTP_GONE.html.var#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var## The following directives modify normal HTTP response behavior to# handle known problems with browser implementations.#BrowserMatch "Mozilla/2" nokeepaliveBrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0BrowserMatch "RealPlayer 4\.0" force-response-1.0BrowserMatch "Java/1\.0" force-response-1.0BrowserMatch "JDK/1\.0" force-response-1.0## The following directive disables redirects on non-GET requests for# a directory that does not include the trailing slash.  This fixes a # problem with Microsoft WebFolders which does not appropriately handle # redirects for folders with DAV methods.# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.#BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefullyBrowserMatch "MS FrontPage" redirect-carefullyBrowserMatch "^WebDrive" redirect-carefullyBrowserMatch "^WebDAVFS/1.[0123]" redirect-carefullyBrowserMatch "^gnome-vfs" redirect-carefullyBrowserMatch "^XML Spy" redirect-carefullyBrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully## Allow server status reports generated by mod_status,# with the URL of http://servername/server-status# Change the ".@@DomainName@@" to match your domain to enable.##<Location /server-status>#    SetHandler server-status#    Order deny,allow#    Deny from all#    Allow from .@@DomainName@@#</Location>## Allow remote server configuration reports, with the URL of#  http://servername/server-info (requires that mod_info.c be loaded).# Change the ".@@DomainName@@" to match your domain to enable.##<Location /server-info>#    SetHandler server-info#    Order deny,allow#    Deny from all#    Allow from .@@DomainName@@#</Location>## Bring in additional module-specific configurations#<IfModule mod_ssl.c>    Include conf/ssl.conf</IfModule>### 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.## Please see the documentation at # <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 *:80## VirtualHost example:# Almost any Apache directive may go into a VirtualHost container.# The first VirtualHost section is used for requests without a known# server name.##<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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -