@@ -27,131 +27,63 @@ CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m
2727
2828<Directory /var/www/clients>
2929 AllowOverride None
30- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
3130 Require all denied
32- <tmpl_else>
33- Order Deny,Allow
34- Deny from all
35- </tmpl_if>
3631</Directory>
3732
3833# Do not allow access to the root file system of the server for security reasons
3934<Directory />
4035 Options -Indexes
4136 AllowOverride None
42- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
4337 Require all denied
44- <tmpl_else>
45- Order Deny,Allow
46- Deny from all
47- </tmpl_if>
4838</Directory>
4939
5040<Directory /var/www/conf>
5141 AllowOverride None
52- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
5342 Require all denied
54- <tmpl_else>
55- Order Deny,Allow
56- Deny from all
57- </tmpl_if>
5843</Directory>
5944
6045# Except of the following directories that contain website scripts
6146<Directory /usr/share/phpmyadmin>
62- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
6347 Require all granted
64- <tmpl_else>
65- Order allow,deny
66- Allow from all
67- </tmpl_if>
6848</Directory>
6949
7050<Directory /usr/share/phpMyAdmin>
71- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
7251 Require all granted
73- <tmpl_else>
74- Order allow,deny
75- Allow from all
76- </tmpl_if>
7752</Directory>
7853
7954<Directory /srv/www/htdocs>
80- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
8155 Require all granted
82- <tmpl_else>
83- Order allow,deny
84- Allow from all
85- </tmpl_if>
8656</Directory>
8757
8858<Directory /usr/share/squirrelmail>
89- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
9059 Require all granted
91- <tmpl_else>
92- Order allow,deny
93- Allow from all
94- </tmpl_if>
9560</Directory>
9661
9762# Allow access to mailman on OpenSuSE
9863<Directory /usr/lib/mailman/cgi-bin>
99- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
10064 Require all granted
101- <tmpl_else>
102- Order allow,deny
103- Allow from all
104- </tmpl_if>
10565</Directory>
10666
10767<Directory /usr/lib/mailman/icons>
108- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
10968 Require all granted
110- <tmpl_else>
111- Order allow,deny
112- Allow from all
113- </tmpl_if>
11469</Directory>
11570
11671<Directory /var/lib/mailman/archives/>
11772 Options +FollowSymLinks
118- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
11973 Require all granted
120- <tmpl_else>
121- Order allow,deny
122- Allow from all
123- </tmpl_if>
12474</Directory>
12575
12676# allow path to awstats and alias for awstats icons
12777<Directory /usr/share/awstats>
128- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
12978 Require all granted
130- <tmpl_else>
131- Order allow,deny
132- Allow from all
133- </tmpl_if>
13479</Directory>
13580
13681Alias /awstats-icon "/usr/share/awstats/icon"
13782
13883Alias /.well-known/acme-challenge /usr/local/ispconfig/interface/acme/.well-known/acme-challenge
13984<Directory /usr/local/ispconfig/interface/acme/.well-known/acme-challenge>
140- <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
14185 Require all granted
142- <tmpl_else>
143- Order allow,deny
144- Allow from all
145- </tmpl_if>
14686 <IfModule mpm_itk_module>
14787 AssignUserId www-data www-data
14888 </IfModule>
14989</Directory>
150-
151- <tmpl_if name='apache_version' op='<' value='2.4' format='version'>
152- NameVirtualHost *:80
153- NameVirtualHost *:443
154- <tmpl_loop name="ip_adresses">
155- NameVirtualHost {tmpl_var name="ip_address"}:{tmpl_var name="port"}
156- </tmpl_loop>
157- </tmpl_if>
0 commit comments