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>
17 # Dynamic Shared Object (DSO) Support
19 # To be able to use the functionality of a module which was built as a DSO you
20 # have to place corresponding `LoadModule' lines at this location so the
21 # directives contained in it are actually available _before_ they are used.
22 # Please read the file http://httpd.apache.org/docs/dso.html for more
23 # details about the DSO mechanism and run `httpd -l' for the list of already
24 # built-in (statically linked and thus always available) modules in your httpd
27 # Note: The order in which modules are loaded is important. Don't change
28 # the order below without expert advice.
30 #LoadModule authn_file_module lib/apache2/mod_authn_file.so
31 #LoadModule authn_dbm_module lib/apache2/mod_authn_dbm.so
32 #LoadModule authn_anon_module lib/apache2/mod_authn_anon.so
33 #LoadModule authn_dbd_module lib/apache2/mod_authn_dbd.so
34 #LoadModule authn_default_module lib/apache2/mod_authn_default.so
35 LoadModule authz_host_module lib/apache2/mod_authz_host.so
36 #LoadModule authz_groupfile_module lib/apache2/mod_authz_groupfile.so
37 #LoadModule authz_user_module lib/apache2/mod_authz_user.so
38 #LoadModule authz_dbm_module lib/apache2/mod_authz_dbm.so
39 #LoadModule authz_owner_module lib/apache2/mod_authz_owner.so
40 #LoadModule authz_default_module lib/apache2/mod_authz_default.so
41 #LoadModule auth_basic_module lib/apache2/mod_auth_basic.so
42 #LoadModule auth_digest_module lib/apache2/mod_auth_digest.so
43 #LoadModule dbd_module lib/apache2/mod_dbd.so
44 #LoadModule dumpio_module lib/apache2/mod_dumpio.so
45 #LoadModule ext_filter_module lib/apache2/mod_ext_filter.so
46 LoadModule include_module lib/apache2/mod_include.so
47 #LoadModule filter_module lib/apache2/mod_filter.so
48 #LoadModule deflate_module lib/apache2/mod_deflate.so
49 LoadModule log_config_module lib/apache2/mod_log_config.so
50 #LoadModule log_forensic_module lib/apache2/mod_log_forensic.so
51 #LoadModule logio_module lib/apache2/mod_logio.so
52 #LoadModule env_module lib/apache2/mod_env.so
53 #LoadModule mime_magic_module lib/apache2/mod_mime_magic.so
54 #LoadModule cern_meta_module lib/apache2/mod_cern_meta.so
55 #LoadModule expires_module lib/apache2/mod_expires.so
56 LoadModule headers_module lib/apache2/mod_headers.so
57 #LoadModule ident_module lib/apache2/mod_ident.so
58 #LoadModule usertrack_module lib/apache2/mod_usertrack.so
59 #LoadModule unique_id_module lib/apache2/mod_unique_id.so
60 #LoadModule setenvif_module lib/apache2/mod_setenvif.so
61 #LoadModule version_module lib/apache2/mod_version.so
62 #LoadModule proxy_module lib/apache2/mod_proxy.so
63 #LoadModule proxy_connect_module lib/apache2/mod_proxy_connect.so
64 #LoadModule proxy_ftp_module lib/apache2/mod_proxy_ftp.so
65 #LoadModule proxy_http_module lib/apache2/mod_proxy_http.so
66 #LoadModule proxy_ajp_module lib/apache2/mod_proxy_ajp.so
67 #LoadModule proxy_balancer_module lib/apache2/mod_proxy_balancer.so
68 LoadModule ssl_module lib/apache2/mod_ssl.so
69 LoadModule mime_module lib/apache2/mod_mime.so
70 #LoadModule dav_module lib/apache2/mod_dav.so
71 #LoadModule status_module lib/apache2/mod_status.so
72 LoadModule autoindex_module lib/apache2/mod_autoindex.so
73 LoadModule asis_module lib/apache2/mod_asis.so
74 #LoadModule info_module lib/apache2/mod_info.so
75 LoadModule cgi_module lib/apache2/mod_cgi.so
76 #LoadModule dav_fs_module lib/apache2/mod_dav_fs.so
77 #LoadModule vhost_alias_module lib/apache2/mod_vhost_alias.so
78 LoadModule negotiation_module lib/apache2/mod_negotiation.so
79 #LoadModule dir_module lib/apache2/mod_dir.so
80 LoadModule imagemap_module lib/apache2/mod_imagemap.so
81 LoadModule actions_module lib/apache2/mod_actions.so
82 #LoadModule speling_module lib/apache2/mod_speling.so
83 #LoadModule userdir_module lib/apache2/mod_userdir.so
84 LoadModule alias_module lib/apache2/mod_alias.so
85 LoadModule rewrite_module lib/apache2/mod_rewrite.so
86 LoadModule php5_module lib/apache2/cygphp5.so
88 #LoadModule imap_module lib/apache/mod_imap.dll
89 #LoadModule access_module lib/apache/mod_access.dll
90 #LoadModule auth_module lib/apache/mod_auth.dll
94 # Each directory to which Apache has access, can be configured with respect
95 # to which services and features are allowed and/or disabled in that
96 # directory (and its subdirectories).
99 Options Indexes FollowSymLinks MultiViews ExecCGI Includes
107 # Apple specific filesystem protection.
114 <Directory ~ ".*\.\.namedfork">
122 # UseCanonicalName: (new for 1.3) With this setting turned on, whenever
123 # Apache needs to construct a self-referencing URL (a URL that refers back
124 # to the server the response is coming from) it will use ServerName and
125 # Port to form a "canonical" name. With this setting off, Apache will
126 # use the hostname:port that the client supplied, when possible. This
127 # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
133 # The following directives define some format nicknames for use with
134 # a CustomLog directive (see below).
136 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
137 LogFormat "%h %l %u %t \"%r\" %>s %b" common
138 LogFormat "%{Referer}i -> %U" referer
139 LogFormat "%{User-agent}i" agent
143 # Optionally add a line containing the server version and virtual host
144 # name to server-generated pages (error documents, FTP directory listings,
145 # mod_status and mod_info output etc., but not CGI generated documents).
146 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
147 # Set to one of: On | Off | EMail
155 <IfModule mime_module>
158 # AddLanguage allows you to specify the language of a document. You can
159 # then use content negotiation to give a browser a file in a language
162 # Note 1: The suffix does not have to be the same as the language
163 # keyword --- those with documents in Polish (whose net-standard
164 # language code is pl) may wish to use "AddLanguage pl .po" to
165 # avoid the ambiguity with the common suffix for perl scripts.
167 # Note 2: The example entries below illustrate that in quite
168 # some cases the two character 'Language' abbreviation is not
169 # identical to the two character 'Country' code for its country,
170 # E.g. 'Danmark/dk' versus 'Danish/da'.
172 # Note 3: In the case of 'ltz' we violate the RFC by using a three char
173 # specifier. But there is 'work in progress' to fix this and get
174 # the reference data for rfc1766 cleaned up.
176 # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
177 # French (fr) - German (de) - Greek-Modern (el)
178 # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
179 # Portugese (pt) - Luxembourgeois* (ltz)
180 # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
181 # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
192 AddCharset ISO-8859-8 .iso8859-8
195 AddCharset ISO-2022-JP .jis
197 AddCharset ISO-2022-KR .iso-kr
201 AddCharset ISO-8859-2 .iso-pl
203 AddLanguage pt-br .pt-br
208 AddLanguage cs .cz .cs
210 AddLanguage zh-TW .zh-tw
211 AddCharset Big5 .Big5 .big5
212 AddCharset WINDOWS-1251 .cp-1251
213 AddCharset CP866 .cp866
214 AddCharset ISO-8859-5 .iso-ru
215 AddCharset KOI8-R .koi8-r
216 AddCharset UCS-2 .ucs2
217 AddCharset UCS-4 .ucs4
218 AddCharset UTF-8 .utf8
220 # LanguagePriority allows you to give precedence to some languages
221 # in case of a tie during content negotiation.
223 # Just list the languages in decreasing order of preference. We have
224 # more or less alphabetized them here. You probably want to change this.
226 <IfModule negotiation_module>
227 LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
231 # AddType allows you to tweak mime.types without actually editing it, or to
232 # make certain files to be certain types.
234 AddType application/x-tar .tgz
237 # AddEncoding allows you to have certain browsers uncompress
238 # information on the fly. Note: Not all browsers support this.
239 # Despite the name similarity, the following Add* directives have nothing
240 # to do with the FancyIndexing customization directives above.
242 AddEncoding x-compress .Z
243 AddEncoding x-gzip .gz .tgz
246 # AddHandler allows you to map certain file extensions to "handlers",
247 # actions unrelated to filetype. These can be either built into the server
248 # or added with the Action command (see below)
250 # If you want to use server side includes, or CGI outside
251 # ScriptAliased directories, uncomment the following lines.
253 # To use CGI scripts:
255 AddHandler cgi-script .cgi .pl
258 # To use server-parsed HTML files
260 AddType text/html .shtml
261 AddHandler server-parsed .shtml
264 # Uncomment the following line to enable Apache's send-asis HTTP file
267 AddHandler send-as-is asis
271 <IfModule php5_module>
272 AddType application/x-httpd-php .php
273 AddType application/x-httpd-php-source .phps
276 <IfModule rewrite_module>
278 RewriteCond %{REQUEST_METHOD} ^TRACE