]> git.pld-linux.org Git - packages/apache.git/blob - apache-common.conf
- update to latest intermediate compatibility https://wiki.mozilla.org/Security/Serve...
[packages/apache.git] / apache-common.conf
1
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 #
6 DocumentRoot "/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
10 # directory (and its subdirectories).
11 #
12 # First, we configure the "default" to be a very restrictive set of
13 # features.
14 #
15 <Directory />
16         Options FollowSymLinks
17         AllowOverride None
18         <IfModule mod_authz_host.c>
19                 Require all denied
20         </IfModule>
21         <IfModule mod_access_compat.c>
22                 Order deny,allow
23                 Deny from all
24         </IfModule>
25 </Directory>
26
27 # Prevent .htaccess and .htpasswd files from being viewed by Web clients.
28 <Files ".ht*">
29         <IfModule mod_authz_host.c>
30                 Require all denied
31         </IfModule>
32         <IfModule mod_access_compat.c>
33                 Order deny,allow
34                 Deny from all
35         </IfModule>
36 </Files>
37
38 # Prevent backup files from being viewed, too.
39 <Files "*~">
40         <IfModule mod_authz_host.c>
41                 Require all denied
42         </IfModule>
43         <IfModule mod_access_compat.c>
44                 Order deny,allow
45                 Deny from all
46         </IfModule>
47 </Files>
48
49 #
50 # This should be changed to whatever you set DocumentRoot to.
51 #
52 <Directory "/home/services/httpd/html">
53         #
54         # Possible values for the Options directive are "None", "All",
55         # or any combination of:
56         #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
57         #
58         # Note that "MultiViews" must be named *explicitly* --- "Options All"
59         # doesn't give it to you.
60         #
61         # The Options directive is both complicated and important.  Please see
62         # http://httpd.apache.org/docs/2.2/mod/core.html#options
63         # for more information.
64         #
65         Options Indexes FollowSymLinks
66
67         #
68         # AllowOverride controls what directives may be placed in .htaccess files.
69         # It can be "All", "None", or any combination of the keywords:
70         #   Options FileInfo AuthConfig Limit
71         #
72         AllowOverride None
73
74         #
75         # Controls who can get stuff from this server.
76         #
77         <IfModule mod_authz_host.c>
78                 Require all granted
79         </IfModule>
80         <IfModule mod_access_compat.c>
81                 Order allow,deny
82                 Allow from all
83         </IfModule>
84
85 </Directory>
This page took 0.031559 seconds and 3 git commands to generate.