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