|
3 | 3 | # ISPConfig Logfile configuration for vlogger |
4 | 4 | ################################################ |
5 | 5 |
|
6 | | -LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig |
7 | | -CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig |
| 6 | +SetEnvIf Request_URI "^/datalogstatus.php$" dontlog |
8 | 7 |
|
9 | | -<IfModule mod_headers.c> |
10 | | - <LocationMatch "/.well-known/acme-challenge/*"> |
11 | | - Header set Content-Type "text/plain" |
12 | | - </LocationMatch> |
13 | | -</IfModule> |
| 8 | +LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig |
| 9 | +CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig env=!dontlog |
14 | 10 |
|
15 | 11 | <Directory /var/www/clients> |
16 | 12 | AllowOverride None |
17 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
18 | | - Require all denied |
19 | | - <tmpl_else> |
20 | | - Order Deny,Allow |
21 | | - Deny from all |
22 | | - </tmpl_if> |
| 13 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 14 | + Require all denied |
| 15 | + <tmpl_else> |
| 16 | + Order Deny,Allow |
| 17 | + Deny from all |
| 18 | + </tmpl_if> |
23 | 19 | </Directory> |
24 | 20 |
|
25 | 21 | # Do not allow access to the root file system of the server for security reasons |
26 | 22 | <Directory /> |
| 23 | + Options -Indexes |
27 | 24 | AllowOverride None |
28 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
29 | | - Require all denied |
30 | | - <tmpl_else> |
31 | | - Order Deny,Allow |
32 | | - Deny from all |
33 | | - </tmpl_if> |
| 25 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 26 | + Require all denied |
| 27 | + <tmpl_else> |
| 28 | + Order Deny,Allow |
| 29 | + Deny from all |
| 30 | + </tmpl_if> |
34 | 31 | </Directory> |
35 | 32 |
|
36 | 33 | <Directory /var/www/conf> |
37 | 34 | AllowOverride None |
38 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
39 | | - Require all denied |
40 | | - <tmpl_else> |
41 | | - Order Deny,Allow |
42 | | - Deny from all |
43 | | - </tmpl_if> |
| 35 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 36 | + Require all denied |
| 37 | + <tmpl_else> |
| 38 | + Order Deny,Allow |
| 39 | + Deny from all |
| 40 | + </tmpl_if> |
44 | 41 | </Directory> |
45 | 42 |
|
46 | 43 | # Except of the following directories that contain website scripts |
47 | 44 | <Directory /usr/share/phpmyadmin> |
48 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
49 | | - Require all granted |
50 | | - <tmpl_else> |
| 45 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 46 | + Require all granted |
| 47 | + <tmpl_else> |
51 | 48 | Order allow,deny |
52 | 49 | Allow from all |
53 | | - </tmpl_if> |
| 50 | + </tmpl_if> |
54 | 51 | </Directory> |
55 | 52 |
|
56 | 53 | <Directory /usr/share/phpMyAdmin> |
57 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
58 | | - Require all granted |
59 | | - <tmpl_else> |
| 54 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 55 | + Require all granted |
| 56 | + <tmpl_else> |
60 | 57 | Order allow,deny |
61 | 58 | Allow from all |
62 | | - </tmpl_if> |
| 59 | + </tmpl_if> |
63 | 60 | </Directory> |
64 | 61 |
|
65 | 62 | <Directory /srv/www/htdocs> |
66 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
67 | | - Require all granted |
68 | | - <tmpl_else> |
| 63 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 64 | + Require all granted |
| 65 | + <tmpl_else> |
69 | 66 | Order allow,deny |
70 | 67 | Allow from all |
71 | | - </tmpl_if> |
| 68 | + </tmpl_if> |
72 | 69 | </Directory> |
73 | 70 |
|
74 | 71 | <Directory /usr/share/squirrelmail> |
75 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
76 | | - Require all granted |
77 | | - <tmpl_else> |
| 72 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 73 | + Require all granted |
| 74 | + <tmpl_else> |
78 | 75 | Order allow,deny |
79 | 76 | Allow from all |
80 | | - </tmpl_if> |
| 77 | + </tmpl_if> |
81 | 78 | </Directory> |
82 | 79 |
|
83 | 80 | # Allow access to mailman on OpenSuSE |
84 | 81 | <Directory /usr/lib/mailman/cgi-bin> |
85 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
86 | | - Require all granted |
87 | | - <tmpl_else> |
| 82 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 83 | + Require all granted |
| 84 | + <tmpl_else> |
88 | 85 | Order allow,deny |
89 | 86 | Allow from all |
90 | | - </tmpl_if> |
| 87 | + </tmpl_if> |
91 | 88 | </Directory> |
92 | 89 |
|
93 | 90 | <Directory /usr/lib/mailman/icons> |
94 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
95 | | - Require all granted |
96 | | - <tmpl_else> |
| 91 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 92 | + Require all granted |
| 93 | + <tmpl_else> |
97 | 94 | Order allow,deny |
98 | 95 | Allow from all |
99 | | - </tmpl_if> |
| 96 | + </tmpl_if> |
100 | 97 | </Directory> |
101 | 98 |
|
102 | 99 | <Directory /var/lib/mailman/archives/> |
103 | 100 | Options +FollowSymLinks |
104 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
105 | | - Require all granted |
106 | | - <tmpl_else> |
| 101 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 102 | + Require all granted |
| 103 | + <tmpl_else> |
107 | 104 | Order allow,deny |
108 | 105 | Allow from all |
109 | | - </tmpl_if> |
| 106 | + </tmpl_if> |
110 | 107 | </Directory> |
111 | 108 |
|
112 | 109 | # allow path to awstats and alias for awstats icons |
113 | 110 | <Directory /usr/share/awstats> |
114 | | - <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
115 | | - Require all granted |
116 | | - <tmpl_else> |
| 111 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 112 | + Require all granted |
| 113 | + <tmpl_else> |
117 | 114 | Order allow,deny |
118 | 115 | Allow from all |
119 | | - </tmpl_if> |
| 116 | + </tmpl_if> |
120 | 117 | </Directory> |
121 | 118 |
|
122 | 119 | <tmpl_if name='apache_version' op='<' value='2.4' format='version'> |
123 | 120 | Alias /awstats-icon "/usr/share/awstats/icon" |
124 | 121 | </tmpl_if> |
125 | 122 |
|
| 123 | +Alias /.well-known/acme-challenge /usr/local/ispconfig/interface/acme/.well-known/acme-challenge |
| 124 | +<Directory /usr/local/ispconfig/interface/acme/.well-known/acme-challenge> |
| 125 | + <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| 126 | + Require all granted |
| 127 | + <tmpl_else> |
| 128 | + Order allow,deny |
| 129 | + Allow from all |
| 130 | + </tmpl_if> |
| 131 | +</Directory> |
| 132 | + |
126 | 133 | NameVirtualHost *:80 |
127 | 134 | NameVirtualHost *:443 |
128 | 135 | <tmpl_loop name="ip_adresses"> |
129 | 136 | NameVirtualHost {tmpl_var name="ip_address"}:{tmpl_var name="port"} |
130 | 137 | </tmpl_loop> |
131 | | - |
|
0 commit comments