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