Нет, поторопился.
...
location ~ "^/s/private/(?<token>.*)/(?<expires>\d+)/(?<cam_id>\d{10})\.m3u8$" {
secure_link $token,$expires;
secure_link_md5 "...";
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 410;
}
fastcgi_param SCRIPT_FILENAME $document_root/m3u8.php;
include fastcgi_params;
fastcgi_param QUERY_STRING id=$id&$args;
2014/04/29 09:56:08 [debug] 3630#0: *240 test location: ~ "^/s/private/(?<token>.*)/(?<expires>\d+)/(?<id>\d{10})\.m3u8$"
2014/04/29 09:56:08 [debug] 3630#0: *240 http regex set $id to "0000000977"
2014/04/29 09:56:08 [debug] 3630#0: *240 http regex set $expires to "1398801600"
2014/04/29 09:56:08 [debug] 3630#0: *240 http regex set $token to "XXXXXXXXXXXXXXXXXXXXX"
2014/04/29 09:56:08 [debug] 3630#0: *240 test location: ~ "^/s/private/(?<token>.*)/(?<expires>\d+)/(?<id>\d{10})\.m3u8$"
2014/04/29 09:56:08 [debug] 3630#0: *240 http regex set $id to "0000000977"
2014/04/29 09:56:08 [debug] 3630#0: *240 http regex set $expires to "1398801600"
2014/04/29 09:56:08 [debug] 3630#0: *240 http regex set $token to "XXXXXXXXXXXXXXXXXXXXX"
2014/04/29 09:56:08 [debug] 3630#0: *240 using configuration "*^/s/private/(?<token>.*)/(?<expires>\d+)/(?<id>\d{10})\.m3u8$"
2014/04/29 09:56:08 [debug] 3630#0: *240 http cl:-1 max:1048576
2014/04/29 09:56:08 [debug] 3630#0: *240 rewrite phase: 3
2014/04/29 09:56:08 [debug] 3630#0: *240 post rewrite phase: 4
2014/04/29 09:56:08 [debug] 3630#0: *240 generic phase: 5
2014/04/29 09:56:08 [debug] 3630#0: *240 generic phase: 6
2014/04/29 09:56:08 [debug] 3630#0: *240 generic phase: 7
2014/04/29 09:56:08 [debug] 3630#0: *240 access phase: 8
2014/04/29 09:56:08 [debug] 3630#0: *240 access phase: 9
2014/04/29 09:56:08 [debug] 3630#0: *240 access phase: 10
2014/04/29 09:56:08 [debug] 3630#0: *240 post access phase: 11
2014/04/29 09:56:08 [debug] 3630#0: *240 content phase: 12
2014/04/29 09:56:08 [debug] 3630#0: *240 content phase: 13
2014/04/29 09:56:08 [debug] 3630#0: *240 content phase: 14
2014/04/29 09:56:08 [debug] 3630#0: *240 content phase: 15
2014/04/29 09:56:08 [debug] 3630#0: *240 content phase: 16
2014/04/29 09:56:08 [debug] 3630#0: *240 content phase: 17
Пытается отдать файл вместо проксирования.