]> git.pld-linux.org Git - packages/apache.git/blame - apache-common.conf
Add EnableSendfile on. Prevent web clients from accessing htaccess files and backup...
[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 18 <IfModule mod_authz_host.c>
40ca719a 19 Require all denied
d5368e99 20 </IfModule>
e92e5081
JR
21 <IfModule mod_access_compat.c>
22 Order deny,allow
23 Deny from all
24 </IfModule>
271ec643
ER
25</Directory>
26
27#
28# This should be changed to whatever you set DocumentRoot to.
29#
30<Directory "/home/services/httpd/html">
408714fc
ER
31 #
32 # Possible values for the Options directive are "None", "All",
33 # or any combination of:
34 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
35 #
36 # Note that "MultiViews" must be named *explicitly* --- "Options All"
37 # doesn't give it to you.
38 #
39 # The Options directive is both complicated and important. Please see
40 # http://httpd.apache.org/docs/2.2/mod/core.html#options
41 # for more information.
42 #
43 Options Indexes FollowSymLinks
271ec643 44
408714fc
ER
45 #
46 # AllowOverride controls what directives may be placed in .htaccess files.
47 # It can be "All", "None", or any combination of the keywords:
48 # Options FileInfo AuthConfig Limit
49 #
50 AllowOverride None
271ec643 51
408714fc
ER
52 #
53 # Controls who can get stuff from this server.
54 #
d5368e99 55 <IfModule mod_authz_host.c>
40ca719a 56 Require all granted
d5368e99 57 </IfModule>
e92e5081
JR
58 <IfModule mod_access_compat.c>
59 Order allow,deny
60 Allow from all
61 </IfModule>
271ec643
ER
62
63</Directory>
This page took 0.23753 seconds and 4 git commands to generate.