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