1 ## httpd2.conf -- Apache 2.x HTTP server configuration file
4 # Listen: Allows you to bind Apache to specific IP addresses and/or
5 # ports, instead of the default. See also the <VirtualHost>
11 # Dynamic Shared Object (DSO) Support
13 # To be able to use the functionality of a module which was built as a DSO you
14 # have to place corresponding `LoadModule' lines at this location so the
15 # directives contained in it are actually available _before_ they are used.
16 # Please read the file http://httpd.apache.org/docs/dso.html for more
17 # details about the DSO mechanism and run `httpd -l' for the list of already
18 # built-in (statically linked and thus always available) modules in your httpd
21 # Note: The order in which modules are loaded is important. Don't change
22 # the order below without expert advice.
24 # NOTE: This is not the same set of modules that gets loaded on win.
25 LoadModule authz_host_module libexec/apache2/mod_authz_host.so
26 LoadModule mime_module libexec/apache2/mod_mime.so
27 LoadModule ssl_module libexec/apache2/mod_ssl.so
28 LoadModule autoindex_module libexec/apache2/mod_autoindex.so
29 LoadModule alias_module libexec/apache2/mod_alias.so
30 LoadModule log_config_module libexec/apache2/mod_log_config.so
32 #LoadModule include_module libexec/apache2/mod_include.so
33 #LoadModule headers_module libexec/apache2/mod_headers.so
34 #LoadModule asis_module libexec/apache2/mod_asis.so
35 #LoadModule cgi_module libexec/apache2/mod_cgi.so
36 #LoadModule negotiation_module libexec/apache2/mod_negotiation.so
37 #LoadModule imagemap_module libexec/apache2/mod_imagemap.so
38 #LoadModule actions_module libexec/apache2/mod_actions.so
39 #LoadModule rewrite_module libexec/apache2/mod_rewrite.so
43 # Each directory to which Apache has access, can be configured with respect
44 # to which services and features are allowed and/or disabled in that
45 # directory (and its subdirectories).
48 Options Indexes FollowSymLinks MultiViews ExecCGI Includes
56 # Apple specific filesystem protection.
63 <Directory ~ ".*\.\.namedfork">
71 # UseCanonicalName: (new for 1.3) With this setting turned on, whenever
72 # Apache needs to construct a self-referencing URL (a URL that refers back
73 # to the server the response is coming from) it will use ServerName and
74 # Port to form a "canonical" name. With this setting off, Apache will
75 # use the hostname:port that the client supplied, when possible. This
76 # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
82 # The following directives define some format nicknames for use with
83 # a CustomLog directive (see below).
85 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
86 LogFormat "%h %l %u %t \"%r\" %>s %b" common
87 LogFormat "%{Referer}i -> %U" referer
88 LogFormat "%{User-agent}i" agent
92 # Optionally add a line containing the server version and virtual host
93 # name to server-generated pages (error documents, FTP directory listings,
94 # mod_status and mod_info output etc., but not CGI generated documents).
95 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
96 # Set to one of: On | Off | EMail
104 <IfModule mime_module>
107 # AddLanguage allows you to specify the language of a document. You can
108 # then use content negotiation to give a browser a file in a language
111 # Note 1: The suffix does not have to be the same as the language
112 # keyword --- those with documents in Polish (whose net-standard
113 # language code is pl) may wish to use "AddLanguage pl .po" to
114 # avoid the ambiguity with the common suffix for perl scripts.
116 # Note 2: The example entries below illustrate that in quite
117 # some cases the two character 'Language' abbreviation is not
118 # identical to the two character 'Country' code for its country,
119 # E.g. 'Danmark/dk' versus 'Danish/da'.
121 # Note 3: In the case of 'ltz' we violate the RFC by using a three char
122 # specifier. But there is 'work in progress' to fix this and get
123 # the reference data for rfc1766 cleaned up.
125 # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
126 # French (fr) - German (de) - Greek-Modern (el)
127 # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
128 # Portugese (pt) - Luxembourgeois* (ltz)
129 # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
130 # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
141 AddCharset ISO-8859-8 .iso8859-8
144 AddCharset ISO-2022-JP .jis
146 AddCharset ISO-2022-KR .iso-kr
150 AddCharset ISO-8859-2 .iso-pl
152 AddLanguage pt-br .pt-br
157 AddLanguage cs .cz .cs
159 AddLanguage zh-TW .zh-tw
160 AddCharset Big5 .Big5 .big5
161 AddCharset WINDOWS-1251 .cp-1251
162 AddCharset CP866 .cp866
163 AddCharset ISO-8859-5 .iso-ru
164 AddCharset KOI8-R .koi8-r
165 AddCharset UCS-2 .ucs2
166 AddCharset UCS-4 .ucs4
167 AddCharset UTF-8 .utf8
169 # LanguagePriority allows you to give precedence to some languages
170 # in case of a tie during content negotiation.
172 # Just list the languages in decreasing order of preference. We have
173 # more or less alphabetized them here. You probably want to change this.
175 <IfModule negotiation_module>
176 LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
180 # AddType allows you to tweak mime.types without actually editing it, or to
181 # make certain files to be certain types.
183 AddType application/x-tar .tgz
186 # AddEncoding allows you to have certain browsers uncompress
187 # information on the fly. Note: Not all browsers support this.
188 # Despite the name similarity, the following Add* directives have nothing
189 # to do with the FancyIndexing customization directives above.
191 AddEncoding x-compress .Z
192 AddEncoding x-gzip .gz .tgz
195 # AddHandler allows you to map certain file extensions to "handlers",
196 # actions unrelated to filetype. These can be either built into the server
197 # or added with the Action command (see below)
199 # If you want to use server side includes, or CGI outside
200 # ScriptAliased directories, uncomment the following lines.
202 # To use CGI scripts:
204 AddHandler cgi-script .cgi .pl
207 # To use server-parsed HTML files
209 AddType text/html .shtml
210 AddHandler server-parsed .shtml
213 # Uncomment the following line to enable Apache's send-asis HTTP file
216 AddHandler send-as-is asis
220 <IfModule php5_module>
221 AddType application/x-httpd-php .php
222 AddType application/x-httpd-php-source .phps
225 <IfModule rewrite_module>
227 RewriteCond %{REQUEST_METHOD} ^TRACE