1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/zoneminder/nginx.conf

25 lines
758 B
Nginx Configuration File
Raw Normal View History

2016-07-05 12:37:51 +02:00
server {
listen 80 default_server;
server_name _;
index index.php;
location /zm/ {
alias /usr/share/zoneminder/www/;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}
location /zm/cgi-bin/ {
alias /usr/lib/zoneminder/cgi-bin/;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
}
}