Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen localhost:80;
- server_name localhost;
- root /usr/share/zoneminder/www;
- index index.php;
- access_log /usr/share/zoneminder/http_access.log;
- error_log /usr/share/zoneminder/http_error.log;
- location /cgi-bin {
- alias /usr/lib/zoneminder/cgi-bin;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- fastcgi_param HTTP_PROXY "";
- fastcgi_pass unix:/var/run/fcgiwrap.socket;
- }
- location /zm/cache {
- alias /var/cache/zoneminder/cache;
- }
- location ~ /zm/api/(css|img|ico) {
- rewrite ^/zm/api(.+)$ /api/app/webroot/$1 break;
- try_files $uri $uri/ =404;
- }
- location /zm {
- alias /usr/share/zoneminder/www;
- try_files $uri $uri/ /index.php?$args =404;
- location /zm/api {
- rewrite ^/zm/api(.+)$ /zm/api/app/webroot/index.php?p=$1 last;
- }
- location ~ \.php$ {
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- fastcgi_param HTTP_PROXY "";
- fastcgi_index index.php;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement