230 lines
7.4 KiB
Plaintext
230 lines
7.4 KiB
Plaintext
|
## httpd2.conf -- Apache 2.x HTTP server configuration file
|
||
|
|
||
|
#
|
||
|
# Listen: Allows you to bind Apache to specific IP addresses and/or
|
||
|
# ports, instead of the default. See also the <VirtualHost>
|
||
|
# directive.
|
||
|
#
|
||
|
Listen 127.0.0.1:8000
|
||
|
|
||
|
#
|
||
|
# 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.
|
||
|
# Please read the file http://httpd.apache.org/docs/dso.html for more
|
||
|
# details about the DSO mechanism and run `httpd -l' for the list of already
|
||
|
# built-in (statically linked and thus always available) modules in your httpd
|
||
|
# binary.
|
||
|
#
|
||
|
# Note: The order in which modules are loaded is important. Don't change
|
||
|
# the order below without expert advice.
|
||
|
#
|
||
|
# NOTE: This is not the same set of modules that gets loaded on win.
|
||
|
LoadModule authz_host_module libexec/apache2/mod_authz_host.so
|
||
|
LoadModule mime_module libexec/apache2/mod_mime.so
|
||
|
LoadModule ssl_module libexec/apache2/mod_ssl.so
|
||
|
LoadModule autoindex_module libexec/apache2/mod_autoindex.so
|
||
|
LoadModule alias_module libexec/apache2/mod_alias.so
|
||
|
LoadModule log_config_module libexec/apache2/mod_log_config.so
|
||
|
|
||
|
#LoadModule include_module libexec/apache2/mod_include.so
|
||
|
#LoadModule headers_module libexec/apache2/mod_headers.so
|
||
|
#LoadModule asis_module libexec/apache2/mod_asis.so
|
||
|
#LoadModule cgi_module libexec/apache2/mod_cgi.so
|
||
|
#LoadModule negotiation_module libexec/apache2/mod_negotiation.so
|
||
|
#LoadModule imagemap_module libexec/apache2/mod_imagemap.so
|
||
|
#LoadModule actions_module libexec/apache2/mod_actions.so
|
||
|
#LoadModule rewrite_module libexec/apache2/mod_rewrite.so
|
||
|
|
||
|
|
||
|
#
|
||
|
# Each directory to which Apache has access, can be configured with respect
|
||
|
# to which services and features are allowed and/or disabled in that
|
||
|
# directory (and its subdirectories).
|
||
|
#
|
||
|
<Directory />
|
||
|
Options Indexes FollowSymLinks MultiViews ExecCGI Includes
|
||
|
AllowOverride All
|
||
|
Order allow,deny
|
||
|
Allow from all
|
||
|
</Directory>
|
||
|
|
||
|
|
||
|
#
|
||
|
# Apple specific filesystem protection.
|
||
|
|
||
|
<Files "rsrc">
|
||
|
Order allow,deny
|
||
|
Deny from all
|
||
|
Satisfy All
|
||
|
</Files>
|
||
|
<Directory ~ ".*\.\.namedfork">
|
||
|
Order allow,deny
|
||
|
Deny from all
|
||
|
Satisfy All
|
||
|
</Directory>
|
||
|
|
||
|
|
||
|
#
|
||
|
# UseCanonicalName: (new for 1.3) With this setting turned on, whenever
|
||
|
# Apache needs to construct a self-referencing URL (a URL that refers back
|
||
|
# to the server the response is coming from) it will use ServerName and
|
||
|
# Port to form a "canonical" name. With this setting off, Apache will
|
||
|
# use the hostname:port that the client supplied, when possible. This
|
||
|
# also affects SERVER_NAME and SERVER_PORT in CGI scripts.
|
||
|
#
|
||
|
UseCanonicalName On
|
||
|
|
||
|
|
||
|
#
|
||
|
# The following directives define some format nicknames for use with
|
||
|
# a CustomLog directive (see below).
|
||
|
#
|
||
|
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
|
||
|
|
||
|
|
||
|
#
|
||
|
# Optionally add a line containing the server version and virtual host
|
||
|
# name to server-generated pages (error documents, FTP directory listings,
|
||
|
# mod_status and mod_info output etc., but not CGI generated documents).
|
||
|
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
|
||
|
# Set to one of: On | Off | EMail
|
||
|
#
|
||
|
ServerSignature On
|
||
|
|
||
|
|
||
|
#
|
||
|
# Document types.
|
||
|
#
|
||
|
<IfModule mime_module>
|
||
|
|
||
|
#
|
||
|
# AddLanguage allows you to specify the language of a document. You can
|
||
|
# then use content negotiation to give a browser a file in a language
|
||
|
# it can understand.
|
||
|
#
|
||
|
# Note 1: The suffix does not have to be the same as the language
|
||
|
# keyword --- those with documents in Polish (whose net-standard
|
||
|
# language code is pl) may wish to use "AddLanguage pl .po" to
|
||
|
# avoid the ambiguity with the common suffix for perl scripts.
|
||
|
#
|
||
|
# Note 2: The example entries below illustrate that in quite
|
||
|
# some cases the two character 'Language' abbreviation is not
|
||
|
# identical to the two character 'Country' code for its country,
|
||
|
# E.g. 'Danmark/dk' versus 'Danish/da'.
|
||
|
#
|
||
|
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
|
||
|
# specifier. But there is 'work in progress' to fix this and get
|
||
|
# the reference data for rfc1766 cleaned up.
|
||
|
#
|
||
|
# Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
|
||
|
# French (fr) - German (de) - Greek-Modern (el)
|
||
|
# Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
|
||
|
# Portugese (pt) - Luxembourgeois* (ltz)
|
||
|
# Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
|
||
|
# Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
|
||
|
# Russian (ru)
|
||
|
#
|
||
|
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-TW .zh-tw
|
||
|
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
|
||
|
|
||
|
# 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.
|
||
|
#
|
||
|
<IfModule negotiation_module>
|
||
|
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
|
||
|
</IfModule>
|
||
|
|
||
|
#
|
||
|
# AddType allows you to tweak mime.types without actually editing it, or to
|
||
|
# make certain files to be certain types.
|
||
|
#
|
||
|
AddType application/x-tar .tgz
|
||
|
|
||
|
#
|
||
|
# AddEncoding allows you to have certain browsers 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
|
||
|
|
||
|
#
|
||
|
# 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 command (see below)
|
||
|
#
|
||
|
# If you want to use server side includes, or CGI outside
|
||
|
# ScriptAliased directories, uncomment the following lines.
|
||
|
#
|
||
|
# To use CGI scripts:
|
||
|
#
|
||
|
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
|
||
|
</IfModule>
|
||
|
|
||
|
|
||
|
<IfModule php5_module>
|
||
|
AddType application/x-httpd-php .php
|
||
|
AddType application/x-httpd-php-source .phps
|
||
|
</IfModule>
|
||
|
|
||
|
<IfModule rewrite_module>
|
||
|
RewriteEngine On
|
||
|
RewriteCond %{REQUEST_METHOD} ^TRACE
|
||
|
RewriteRule .* - [F]
|
||
|
</IfModule>
|