]> git.pld-linux.org Git - packages/apache.git/blame - apache-common.conf
- fixed mime.types path
[packages/apache.git] / apache-common.conf
CommitLineData
271ec643
ER
1
2# TODO
3# - split each section to module's config fragment
4# - move LoadModule's to each module's config
5#
6#
7# Dynamic Shared Object (DSO) Support
8#
9# To be able to use the functionality of a module which was built as a DSO you
10# have to place corresponding `LoadModule' lines at this location so the
11# directives contained in it are actually available _before_ they are used.
12# Statically compiled modules (those listed by `httpd -l') do not need
13# to be loaded here.
14#
15# Example:
16# LoadModule foo_module modules/mod_foo.so
17#
18LoadModule authn_file_module modules/mod_authn_file.so
19LoadModule authn_dbm_module modules/mod_authn_dbm.so
20LoadModule authn_anon_module modules/mod_authn_anon.so
21LoadModule authn_dbd_module modules/mod_authn_dbd.so
22LoadModule authn_default_module modules/mod_authn_default.so
23LoadModule authn_alias_module modules/mod_authn_alias.so
24LoadModule authz_host_module modules/mod_authz_host.so
25LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
26LoadModule authz_user_module modules/mod_authz_user.so
27LoadModule authz_dbm_module modules/mod_authz_dbm.so
28LoadModule authz_owner_module modules/mod_authz_owner.so
29LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
30LoadModule authz_default_module modules/mod_authz_default.so
31LoadModule auth_basic_module modules/mod_auth_basic.so
271ec643
ER
32LoadModule dbd_module modules/mod_dbd.so
33LoadModule bucketeer_module modules/mod_bucketeer.so
34LoadModule dumpio_module modules/mod_dumpio.so
35LoadModule echo_module modules/mod_echo.so
36LoadModule case_filter_module modules/mod_case_filter.so
37LoadModule case_filter_in_module modules/mod_case_filter_in.so
38LoadModule ext_filter_module modules/mod_ext_filter.so
39LoadModule include_module modules/mod_include.so
40LoadModule filter_module modules/mod_filter.so
271ec643
ER
41LoadModule log_config_module modules/mod_log_config.so
42LoadModule log_forensic_module modules/mod_log_forensic.so
43LoadModule logio_module modules/mod_logio.so
44LoadModule env_module modules/mod_env.so
45LoadModule mime_magic_module modules/mod_mime_magic.so
46LoadModule cern_meta_module modules/mod_cern_meta.so
271ec643 47LoadModule ident_module modules/mod_ident.so
271ec643
ER
48LoadModule setenvif_module modules/mod_setenvif.so
49LoadModule version_module modules/mod_version.so
271ec643
ER
50LoadModule optional_hook_export_module modules/mod_optional_hook_export.so
51LoadModule optional_hook_import_module modules/mod_optional_hook_import.so
52LoadModule optional_fn_import_module modules/mod_optional_fn_import.so
53LoadModule optional_fn_export_module modules/mod_optional_fn_export.so
54LoadModule mime_module modules/mod_mime.so
271ec643 55LoadModule asis_module modules/mod_asis.so
271ec643 56LoadModule cgi_module modules/mod_cgi.so
271ec643 57LoadModule negotiation_module modules/mod_negotiation.so
271ec643 58LoadModule imagemap_module modules/mod_imagemap.so
271ec643
ER
59LoadModule speling_module modules/mod_speling.so
60LoadModule userdir_module modules/mod_userdir.so
61LoadModule alias_module modules/mod_alias.so
271ec643 62
271ec643
ER
63# DocumentRoot: The directory out of which you will serve your
64# documents. By default, all requests are taken from this directory, but
65# symbolic links and aliases may be used to point to other locations.
66#
67DocumentRoot "/home/services/httpd/html"
68
69# Each directory to which Apache has access can be configured with respect
70# to which services and features are allowed and/or disabled in that
59b6a2b2 71# directory (and its subdirectories).
271ec643 72#
59b6a2b2
ER
73# First, we configure the "default" to be a very restrictive set of
74# features.
271ec643
ER
75#
76<Directory />
77 Options FollowSymLinks
78 AllowOverride None
79 Order deny,allow
80 Deny from all
81</Directory>
82
83#
84# This should be changed to whatever you set DocumentRoot to.
85#
86<Directory "/home/services/httpd/html">
87 #
88 # Possible values for the Options directive are "None", "All",
89 # or any combination of:
90 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
91 #
92 # Note that "MultiViews" must be named *explicitly* --- "Options All"
93 # doesn't give it to you.
94 #
95 # The Options directive is both complicated and important. Please see
96 # http://httpd.apache.org/docs/2.2/mod/core.html#options
97 # for more information.
98 #
99 Options Indexes FollowSymLinks
100
101 #
102 # AllowOverride controls what directives may be placed in .htaccess files.
103 # It can be "All", "None", or any combination of the keywords:
104 # Options FileInfo AuthConfig Limit
105 #
106 AllowOverride None
107
108 #
109 # Controls who can get stuff from this server.
110 #
111 Order allow,deny
112 Allow from all
113
114</Directory>
115
116#
117# DirectoryIndex: sets the file that Apache will serve if a directory
118# is requested.
119#
120<IfModule dir_module>
121 DirectoryIndex index.html
122</IfModule>
123
124#
59b6a2b2
ER
125# The following lines prevent .htaccess and .htpasswd files from being
126# viewed by Web clients.
271ec643
ER
127#
128<FilesMatch "^\.ht">
129 Order allow,deny
130 Deny from all
131</FilesMatch>
132
133<IfModule log_config_module>
134 #
135 # The following directives define some format nicknames for use with
136 # a CustomLog directive (see below).
137 #
138 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
139 LogFormat "%h %l %u %t \"%r\" %>s %b" common
140
141 <IfModule logio_module>
142 # You need to enable mod_logio.c to use %I and %O
143 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
144 </IfModule>
145
146 #
147 # The location and format of the access logfile (Common Logfile Format).
148 # If you do not define any access logfiles within a <VirtualHost>
149 # container, they will be logged here. Contrariwise, if you *do*
150 # define per-<VirtualHost> access logfiles, transactions will be
151 # logged therein and *not* in this file.
152 #
153 CustomLog /var/log/httpd/access_log common
154
155 #
156 # If you prefer a logfile with access, agent, and referer information
157 # (Combined Logfile Format) you can use the following directive.
158 #
159 #CustomLog /var/log/httpd/access_log combined
160</IfModule>
161
162<IfModule alias_module>
163 #
59b6a2b2
ER
164 # Redirect: Allows you to tell clients about documents that used to
165 # exist in your server's namespace, but do not anymore. The client
271ec643
ER
166 # will make a new request for the document at its new location.
167 # Example:
168 # Redirect permanent /foo http://www.example.com/bar
169
170 #
171 # Alias: Maps web paths into filesystem paths and is used to
172 # access content that does not live under the DocumentRoot.
173 # Example:
174 # Alias /webpath /full/filesystem/path
175 #
176 # If you include a trailing / on /webpath then the server will
177 # require it to be present in the URL. You will also likely
178 # need to provide a <Directory> section to allow access to
179 # the filesystem path.
180
181 #
59b6a2b2 182 # ScriptAlias: This controls which directories contain server scripts.
271ec643
ER
183 # ScriptAliases are essentially the same as Aliases, except that
184 # documents in the target directory are treated as applications and
185 # run by the server when requested rather than as documents sent to the
186 # client. The same rules about trailing "/" apply to ScriptAlias
187 # directives as to Alias.
188 #
189 ScriptAlias /cgi-bin/ "/home/services/httpd/cgi-bin/"
190
191</IfModule>
192
193<IfModule cgid_module>
194 #
195 # ScriptSock: On threaded servers, designate the path to the UNIX
196 # socket used to communicate with the CGI daemon of mod_cgid.
197 #
198 #Scriptsock /var/run/cgisock
199</IfModule>
200
201#
202# "/home/services/httpd/cgi-bin" should be changed to whatever your ScriptAliased
203# CGI directory exists, if you have that configured.
204#
205<Directory "/home/services/httpd/cgi-bin">
206 AllowOverride None
207 Options None
208 Order allow,deny
209 Allow from all
210</Directory>
211
212<IfModule mime_module>
213 #
214 # TypesConfig points to the file containing the list of mappings from
215 # filename extension to MIME-type.
216 #
59b6a2b2 217 TypesConfig /etc/mime.types
271ec643
ER
218
219 #
220 # AddType allows you to add to or override the MIME configuration
221 # file specified in TypesConfig for specific file types.
222 #
223 #AddType application/x-gzip .tgz
224 #
225 # AddEncoding allows you to have certain browsers uncompress
226 # information on the fly. Note: Not all browsers support this.
227 #
228 #AddEncoding x-compress .Z
229 #AddEncoding x-gzip .gz .tgz
230 #
231 # If the AddEncoding directives above are commented-out, then you
232 # probably should define those extensions to indicate media types:
233 #
234 AddType application/x-compress .Z
235 AddType application/x-gzip .gz .tgz
236
237 #
238 # AddHandler allows you to map certain file extensions to "handlers":
239 # actions unrelated to filetype. These can be either built into the server
240 # or added with the Action directive (see below)
241 #
242 # To use CGI scripts outside of ScriptAliased directories:
243 # (You will also need to add "ExecCGI" to the "Options" directive.)
244 #
245 #AddHandler cgi-script .cgi
246
247 # For files that include their own HTTP headers:
248 #AddHandler send-as-is asis
249
250 # For server-parsed imagemap files:
251 #AddHandler imap-file map
252
253 # For type maps (negotiated resources):
254 #AddHandler type-map var
255
256 #
257 # Filters allow you to process content before it is sent to the client.
258 #
259 # To parse .shtml files for server-side includes (SSI):
260 # (You will also need to add "Includes" to the "Options" directive.)
261 #
262 #AddType text/html .shtml
263 #AddOutputFilter INCLUDES .shtml
264</IfModule>
265
266#
267# The mod_mime_magic module allows the server to use various hints from the
268# contents of the file itself to determine its type. The MIMEMagicFile
269# directive tells the module where the hint definitions are located.
270#
271#MIMEMagicFile /magic
272
273#
274# Customizable error responses come in three flavors:
275# 1) plain text 2) local redirects 3) external redirects
276#
277# Some examples:
278#ErrorDocument 500 "The server made a boo boo."
279#ErrorDocument 404 /missing.html
280#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
281#ErrorDocument 402 http://www.example.com/subscription_info.html
282#
283
284#
59b6a2b2 285# EnableMMAP and EnableSendfile: On systems that support it,
271ec643
ER
286# memory-mapping or the sendfile syscall is used to deliver
287# files. This usually improves server performance, but must
59b6a2b2 288# be turned off when serving from networked-mounted
271ec643
ER
289# filesystems or if support for these functions is otherwise
290# broken on your system.
291#
292#EnableMMAP off
293#EnableSendfile off
294
295# Supplemental configuration
296#
59b6a2b2
ER
297# The configuration files in the /extra/ directory can be
298# included to add extra features or to modify the default configuration of
299# the server, or you may simply copy their contents here and change as
271ec643
ER
300# necessary.
301
302# Server-pool management (MPM specific)
303#Include /extra/httpd-mpm.conf
304
305# Multi-language error messages
306#Include /extra/httpd-multilang-errordoc.conf
307
308# Fancy directory listings
309#Include /extra/httpd-autoindex.conf
310
311# Language settings
312#Include /extra/httpd-languages.conf
313
314# User home directories
315#Include /extra/httpd-userdir.conf
316
317# Real-time info on requests and configuration
318#Include /extra/httpd-info.conf
319
320# Virtual hosts
321#Include /extra/httpd-vhosts.conf
322
323# Local access to the Apache HTTP Server Manual
324#Include /extra/httpd-manual.conf
325
326# Distributed authoring and versioning (WebDAV)
327#Include /extra/httpd-dav.conf
328
329# Various default settings
330#Include /extra/httpd-default.conf
331
332# Secure (SSL/TLS) connections
333#Include /extra/httpd-ssl.conf
334#
335# Note: The following must must be present to support
336# starting without SSL on platforms with no /dev/random equivalent
337# but a statically compiled-in mod_ssl.
338#
339<IfModule ssl_module>
340SSLRandomSeed startup builtin
341SSLRandomSeed connect builtin
342</IfModule>
343
344# vim:syn=apache
This page took 0.06737 seconds and 4 git commands to generate.