forked from Bashev/docker-zpush-zimbra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault-vhost.conf
37 lines (31 loc) · 1.14 KB
/
default-vhost.conf
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
<VirtualHost *:80>
ServerAdmin webmaster@localhost
Alias /Microsoft-Server-ActiveSync /var/www/html/index.php
Alias /AutoDiscover/AutoDiscover.xml /var/www/autodiscover/autodiscover.php
Alias /Autodiscover/Autodiscover.xml /var/www/autodiscover/autodiscover.php
Alias /autodiscover/autodiscover.xml /var/www/autodiscover/autodiscover.php
DocumentRoot /var/www/html
<Directory /var/www/html/>
# Don't list a directory index, follow symlinks (maybe state dir is somewhere linked)
DirectoryIndex index.php
Options -Indexes +FollowSymLinks
# Security
# Don't allow .htaccess Overrides, disallow access to files
AllowOverride none
<IfModule !mod_authz_core.c>
Order allow,deny
allow from all
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<Files "config.php">
<IfModule !mod_authz_core.c>
Deny from All
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</Files>
</Directory>
</VirtualHost>