]> TLD Linux GIT Repositories - packages/apache.git/blob - apache-common.conf
- Up to 2.4.52
[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 access to:
28 # - .htaccess and .htpasswd files
29 # - backup files from being viewed
30 # - PHP's .user.ini
31 <FilesMatch  "^(\.ht.*|\.user\.ini|.*~|.*,v)$">
32         <IfModule mod_authz_host.c>
33                 Require all denied
34         </IfModule>
35         <IfModule mod_access_compat.c>
36                 Order deny,allow
37                 Deny from all
38         </IfModule>
39 </FilesMatch>
40
41 # Prevent access to:
42 # - version control directories
43 <DirectoryMatch "/(\.(svn|git|hg|bzr)|CVS)/?">
44         <IfModule mod_authz_host.c>
45                 Require all denied
46         </IfModule>
47         <IfModule mod_access_compat.c>
48                 Order deny,allow
49                 Deny from all
50         </IfModule>
51 </DirectoryMatch>
52
53 #
54 # This should be changed to whatever you set DocumentRoot to.
55 #
56 <Directory "/home/services/httpd/html">
57         #
58         # Possible values for the Options directive are "None", "All",
59         # or any combination of:
60         #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
61         #
62         # Note that "MultiViews" must be named *explicitly* --- "Options All"
63         # doesn't give it to you.
64         #
65         # The Options directive is both complicated and important.  Please see
66         # http://httpd.apache.org/docs/2.2/mod/core.html#options
67         # for more information.
68         #
69         Options Indexes FollowSymLinks
70
71         #
72         # AllowOverride controls what directives may be placed in .htaccess files.
73         # It can be "All", "None", or any combination of the keywords:
74         #   Options FileInfo AuthConfig Limit
75         #
76         AllowOverride None
77
78         #
79         # Controls who can get stuff from this server.
80         #
81         <IfModule mod_authz_host.c>
82                 Require all granted
83         </IfModule>
84         <IfModule mod_access_compat.c>
85                 Order allow,deny
86                 Allow from all
87         </IfModule>
88
89 </Directory>