hello,
i have a problem with streaming and secure link module. when i setup my .conf file to stream and secure link, secure link doesn't works, mp4 starts streaming without secure params. when i remove the stream codes, it starts to work.
here is my conf.file
server {
listen 80;
server_name localhost;
root /var/www/html;
location / {
index index.php;
}
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
include fastcgi_params;
}
location ~ \.mp4$ {
mp4;
}
location /videos/ {
secure_link $arg_st,$arg_e;
secure_link_md5 zlrtt$remote_addr$uri$arg_e;
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 403;
}
}
}
i tried a lot of ways, like moving secure link codes to up or inside mp4 codes etc.
what is the true way?
thanks.