-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapache_ispconfig.conf.master
More file actions
74 lines (61 loc) · 2.18 KB
/
apache_ispconfig.conf.master
File metadata and controls
74 lines (61 loc) · 2.18 KB
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
################################################
# ISPConfig General Apache Options
################################################
ServerTokens ProductOnly
ServerSignature Off
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/var/run/ocsp(128000)
</IfModule>
################################################
# ISPConfig Logfile configuration for vlogger
################################################
<tmpl_if name='apache_version' op='>=' value='2.5' format='version'>
LogFormat '%v %h %l %u %t "%r" %>s %S "%{Referer}i" "%{User-Agent}i"' combined_ispconfig
<tmpl_else>
LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
</tmpl_if>
<tmpl_if name='logging' op='==' value='anon'>
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -p -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig env=!dontlog
</tmpl_if>
<tmpl_if name='logging' op='==' value='yes'>
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig env=!dontlog
</tmpl_if>
<Directory /var/www/clients>
AllowOverride None
Require all denied
</Directory>
# Do not allow access to the root file system of the server for security reasons
<Directory />
Options -Indexes
AllowOverride None
Require all denied
</Directory>
<Directory /var/www/conf>
AllowOverride None
Require all denied
</Directory>
# Except of the following directories that contain website scripts
<Directory /usr/share/phpmyadmin>
Require all granted
</Directory>
<Directory /usr/share/phpMyAdmin>
Require all granted
</Directory>
<Directory /srv/www/htdocs>
Require all granted
</Directory>
<Directory /usr/share/squirrelmail>
Require all granted
</Directory>
# allow path to awstats and alias for awstats icons
<Directory /usr/share/awstats>
Require all granted
</Directory>
Alias /awstats-icon "/usr/share/awstats/icon"
Alias /.well-known/acme-challenge /usr/local/ispconfig/interface/acme/.well-known/acme-challenge
<Directory /usr/local/ispconfig/interface/acme/.well-known/acme-challenge>
Require all granted
<IfModule mpm_itk_module>
AssignUserId www-data www-data
</IfModule>
</Directory>