diff options
author | Alexandros Michalopoulos | 2018-10-02 17:27:28 +0300 |
---|---|---|
committer | Alexandros Michalopoulos | 2018-10-02 17:27:28 +0300 |
commit | 1e837bdf49dd194445de6012006277e194a1fff1 (patch) | |
tree | b43bfe927ecdd1b4f64b7a567bd61139a305ca5d /zoneminder-nginx.conf | |
parent | 915dadcb92754961095b2b1554cedc7156538921 (diff) | |
download | aur-1e837bdf49dd194445de6012006277e194a1fff1.tar.gz |
v=1.32.1,r=1
Diffstat (limited to 'zoneminder-nginx.conf')
-rw-r--r-- | zoneminder-nginx.conf | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/zoneminder-nginx.conf b/zoneminder-nginx.conf new file mode 100644 index 000000000000..33fe7ab94d13 --- /dev/null +++ b/zoneminder-nginx.conf @@ -0,0 +1,39 @@ +server { + listen localhost:8095; + server_name localhost; + + root /srv/zoneminder/www; + + index index.php; + + access_log /var/log/zoneminder/http_access.log; + error_log /var/log/zoneminder/http_error.log; + + location / { + try_files $uri $uri/ /index.php?$args =404; + + location /api { + rewrite ^/api(.+)$ /api/app/webroot/index.php?p=\$1 last; + } + + location /cgi-bin { + include fastcgi_params; + + fastcgi_param SCRIPT_FILENAME $request_filename; + fastcgi_param HTTP_PROXY ""; + + fastcgi_pass unix:/run/fcgiwrap.sock; + } + + location ~ \.php$ { + include fastcgi_params; + + fastcgi_param SCRIPT_FILENAME $request_filename; + fastcgi_param HTTP_PROXY ""; + + fastcgi_index index.php; + + fastcgi_pass unix:/run/php-fpm/php-fpm.sock; + } + } +} |