hello, i am having an issue with the Archive's
when i add that into nginx
rewrite ^/tslink/(.+)/archive/(\d+)/(.+) /Mportal/server/api/chk_tmp_timeshift_link.php?key=$1&file=$3 break;
proxy_set_header Host myhost; #
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://myhost:88/; #
}
location /archive/ {
root /var/www; # <-- directory, where is archive folder (symlink RECORDS_DIR."archive")
internal;
}
# is necessary to exclude "tslink" and "archive" section from the access to static files
location ~* ^(?!(\/tslink|\/archive))\/.*\.(mpg|mpeg|avi|ts|mkv|mp4|mov|m2ts|flv|m4v|srt|sub|ass)$ {
secure_link $arg_st,$arg_e;
secure_link_md5 "supersecret$uri$remote_addr$arg_e";
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 410;
}
root /var/www/bb3;
}
after restarting nginx
its just does not start getting error
Oct 13 02:14:07 localhost nginx[73382]: nginx: [emerg] unknown directive "secure_link" in /etc/nginx/sites-enabled/default:49
Oct 13 02:14:07 localhost nginx[73382]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 13 02:14:07 localhost systemd[1]: nginx.service: Control process exited, code=exited status=1
Oct 13 02:14:07 localhost systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Unit nginx.service has failed.
-- The result is failed.
Oct 13 02:14:07 localhost systemd[1]: nginx.service: Unit entered failed state.
Oct 13 02:14:07 localhost systemd[1]: nginx.service: Failed with result 'exit-code'.
Oct 13 02:14:08 localhost dhclient[775]: XMT: Solicit on ens192, interval 123740ms.
Oct 13 02:14:08 localhost dhclient[775]: RCV: Advertise message on ens192 from fe80::250:56ff:fe8b:44a9.
Oct 13 02:14:08 localhost dhclient[775]: IA_NA status code NoAddrsAvail: "No addresses available for this interface."
Oct 13 02:14:08 localhost dhclient[775]: RCV: Advertise message on ens192 from fe80::250:56ff:fea8:ed36.
Oct 13 02:14:08 localhost dhclient[775]: IA_NA status code NoAddrsAvail: "No addresses available for this interface."
can someone help me resolve this issue?
thanks in advance