After adding this module I can no longer do HEAD requests on any path/location/domain on the entire webserver.
2018/07/07 21:46:25 [error] 13255#0: *3 flv live: HTTP method was not "GET", client: 192.168.3.1, server: live.mydomain, request: "HEAD /hls/test.m3u8 HTTP/2.0", host: "live.mydomain", referrer: "https://live.mydomain/"
2018/07/07 22:10:41 [error] 14359#0: *994 flv live: HTTP method was not "GET", client: 192.168.3.1, server: unrelateddomain.example, request: "HEAD / HTTP/2.0", host: "unrelateddomain.example", referrer: "https://unrelateddomain.example/"
location /hls/ {
types {
application/x-mpegURL m3u8;
}
alias /mnt/ramdisk/hls/;
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin *;
open_file_cache off;
access_log off;
gzip off;
brotli off;
brotli_static off;
}
location /liveflv {
flv_live on;
chunked_transfer_encoding on;
}
rtmp {
meta off;
server {
listen 1935;
chunk_size 1024;
buflen 500ms;
application live {
live on;
record off;
gop_cache off;
hls on;
hls_path /mnt/ramdisk/hls;
hls_fragment 4s;
hls_max_fragment 4s;
hls_playlist_length 12s;
exec_publish_done bash -c "rm /mnt/ramdisk/hls/*.*";
}
}
}
This setup worked with the nginx-rtmp-module.