Code: Select all
server {
listen <ip1>:443 ssl http2;
server_name intranet.my.domain;
...
location /cgi-bin/nph-zms {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/tmp/zmcgi.sock;
}
}
server {
listen <ip2>:80;
server_name control.my.domain;
...
location /cgi-bin/nph-zms {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/tmp/zmcgi.sock;
}
}
Code: Select all
img width="500px" height="500px" src="http://zmserveripaddress/zm/cgi-bin/nph-zms?mode=jpeg&monitor=#&scale=100&maxfps=5&user=username&pass=password"
Anyone have a clue as to where this is going wrong? I've already tried making <ip1> http instead of https. Thanks in advance.