]> git.pld-linux.org Git - packages/apache.git/blame - apache-common.conf
- apache.rpm main package provides only stuff that was in apache-2.0.rpm
[packages/apache.git] / apache-common.conf
CommitLineData
271ec643 1
271ec643
ER
2# DocumentRoot: The directory out of which you will serve your
3# documents. By default, all requests are taken from this directory, but
4# symbolic links and aliases may be used to point to other locations.
5#
6DocumentRoot "/home/services/httpd/html"
7
8# Each directory to which Apache has access can be configured with respect
9# to which services and features are allowed and/or disabled in that
59b6a2b2 10# directory (and its subdirectories).
271ec643 11#
59b6a2b2
ER
12# First, we configure the "default" to be a very restrictive set of
13# features.
271ec643
ER
14#
15<Directory />
408714fc
ER
16 Options FollowSymLinks
17 AllowOverride None
d5368e99
ER
18 <IfModule mod_authz_host.c>
19 Order deny,allow
20 Deny from all
21 </IfModule>
271ec643
ER
22</Directory>
23
24#
25# This should be changed to whatever you set DocumentRoot to.
26#
27<Directory "/home/services/httpd/html">
408714fc
ER
28 #
29 # Possible values for the Options directive are "None", "All",
30 # or any combination of:
31 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
32 #
33 # Note that "MultiViews" must be named *explicitly* --- "Options All"
34 # doesn't give it to you.
35 #
36 # The Options directive is both complicated and important. Please see
37 # http://httpd.apache.org/docs/2.2/mod/core.html#options
38 # for more information.
39 #
40 Options Indexes FollowSymLinks
271ec643 41
408714fc
ER
42 #
43 # AllowOverride controls what directives may be placed in .htaccess files.
44 # It can be "All", "None", or any combination of the keywords:
45 # Options FileInfo AuthConfig Limit
46 #
47 AllowOverride None
271ec643 48
408714fc
ER
49 #
50 # Controls who can get stuff from this server.
51 #
d5368e99
ER
52 <IfModule mod_authz_host.c>
53 Order allow,deny
54 Allow from all
55 </IfModule>
271ec643
ER
56
57</Directory>
58
271ec643
ER
59# "/home/services/httpd/cgi-bin" should be changed to whatever your ScriptAliased
60# CGI directory exists, if you have that configured.
61#
62<Directory "/home/services/httpd/cgi-bin">
408714fc
ER
63 AllowOverride None
64 Options None
d5368e99
ER
65 <IfModule mod_authz_host.c>
66 Order allow,deny
67 Allow from all
68 </IfModule>
271ec643
ER
69</Directory>
70
271ec643
ER
71# Customizable error responses come in three flavors:
72# 1) plain text 2) local redirects 3) external redirects
73#
74# Some examples:
75#ErrorDocument 500 "The server made a boo boo."
76#ErrorDocument 404 /missing.html
77#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
78#ErrorDocument 402 http://www.example.com/subscription_info.html
79#
80
81#
59b6a2b2 82# EnableMMAP and EnableSendfile: On systems that support it,
271ec643
ER
83# memory-mapping or the sendfile syscall is used to deliver
84# files. This usually improves server performance, but must
59b6a2b2 85# be turned off when serving from networked-mounted
271ec643
ER
86# filesystems or if support for these functions is otherwise
87# broken on your system.
88#
89#EnableMMAP off
90#EnableSendfile off
91
92# Supplemental configuration
93#
59b6a2b2
ER
94# The configuration files in the /extra/ directory can be
95# included to add extra features or to modify the default configuration of
96# the server, or you may simply copy their contents here and change as
271ec643
ER
97# necessary.
98
271ec643
ER
99# Language settings
100#Include /extra/httpd-languages.conf
This page took 0.035666 seconds and 4 git commands to generate.