-
Notifications
You must be signed in to change notification settings - Fork 0
/
zoneminder.conf
55 lines (46 loc) · 1.34 KB
/
zoneminder.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#######################################################
#
# Remember to enable cgi mod and serve-cgi-bin.conf configuration
#
# a2enmod cgi
# a2enconf serve-cgi-bin.conf
#
########################################################
# ************** ALIASES *******************************
ScriptAlias /zm/cgi-bin /usr/lib/zoneminder/cgi-bin
Alias /zm/cache /var/cache/zoneminder
Alias /zm /usr/share/zoneminder/www
# ***************** Directories ************************
<Directory /usr/lib/zoneminder/cgi-bin>
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
<Directory /var/cache/zoneminder>
Options -Indexes +FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /usr/share/zoneminder/www>
Options -Indexes +FollowSymLinks
DirectoryIndex index.php
</Directory>
<Directory /usr/share/zoneminder/www/api>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
RewriteBase /zm/api
</Directory>
<Directory /usr/share/zoneminder/www/api/app>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
RewriteBase /zm/api
</Directory>
<Directory /usr/share/zoneminder/www/api/app/webroot>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteBase /zm/api
</Directory>