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