diff options
author | Alexandros Michalopoulos | 2018-10-06 17:21:42 +0300 |
---|---|---|
committer | Alexandros Michalopoulos | 2018-10-06 17:25:29 +0300 |
commit | 8a6692d9322f95c0057cfe3804d10ccc30e9bdca (patch) | |
tree | 4d4639305f87b40f17af06a6d6f826df0e744fbf /zoneminder-nginx.conf | |
parent | 3f5991574e59a8fe9250860edb6d13bb6c522c37 (diff) | |
download | aur-8a6692d9322f95c0057cfe3804d10ccc30e9bdca.tar.gz |
v=1.32.1,r=3 - ZoneMinder can now be run without MariaDB (for use in remote database scenarios), Apache added as first-class citizen (preferred over Nginx if both are installed)
Diffstat (limited to 'zoneminder-nginx.conf')
-rw-r--r-- | zoneminder-nginx.conf | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/zoneminder-nginx.conf b/zoneminder-nginx.conf index 33fe7ab94d13..29fc1dde40b7 100644 --- a/zoneminder-nginx.conf +++ b/zoneminder-nginx.conf @@ -11,9 +11,14 @@ server { location / { try_files $uri $uri/ /index.php?$args =404; - + + location ~ /api/(css|img) { + rewrite ^/api(.+)$ /api/app/webroot/$1 break; + try_files $uri $uri/ =404; + } + location /api { - rewrite ^/api(.+)$ /api/app/webroot/index.php?p=\$1 last; + rewrite ^/api(.+)$ /api/app/webroot/index.php?p=$1 last; } location /cgi-bin { |