I try to save via Plesk some nginx rules for a module (ngx_http_secure_link_module) and i receive an error. The rules work on an a test server without Plesk.
Plesk v. 12.5.30
Plesk > files.example.com > Apache & Nginx settings
I try to save this in textarea:
The error in red is
Plesk v. 12.5.30
Plesk > files.example.com > Apache & Nginx settings
I try to save this in textarea:
Code:
location /downloads/ {
valid_referers none blocked server_names
*.example.com example.com;
if ($invalid_referer) {
return 403;
}
secure_link $arg_st,$arg_e;
secure_link_md5 "secret$uri$arg_e$remote_addr";
root /var/www/vhosts/example.com/files.example.com;
if ($secure_link = "") {
return 403;
}
if ($secure_link = 0) {
return 410;
}
}
The error in red is
Code:
Invalid nginx configuration: nginx: [emerg] unknown directive "secure_link" in
/var/www/vhosts/system/files.example.com/conf/vhost_nginx.conf:9 nginx:
configuration file /etc/nginx/nginx.conf test failed