summarylogtreecommitdiffstats
path: root/zoneminder-nginx.conf
diff options
context:
space:
mode:
authorAlexandros Michalopoulos2018-10-06 17:21:42 +0300
committerAlexandros Michalopoulos2018-10-06 17:25:29 +0300
commit8a6692d9322f95c0057cfe3804d10ccc30e9bdca (patch)
tree4d4639305f87b40f17af06a6d6f826df0e744fbf /zoneminder-nginx.conf
parent3f5991574e59a8fe9250860edb6d13bb6c522c37 (diff)
downloadaur-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.conf9
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 {