Return 404 for non-existent vod module media (#16586)

* Check if video source exists before showing player

* add comment

* also check 404

* language

* return 404 with vod module
This commit is contained in:
Josh Hawkins
2025-02-14 13:05:05 -06:00
committed by GitHub
parent 761c5109dc
commit 0b65137831
2 changed files with 55 additions and 23 deletions

View File

@@ -109,6 +109,14 @@ http {
expires off;
keepalive_disable safari;
# vod module returns 502 for non-existent media
# https://github.com/kaltura/nginx-vod-module/issues/468
error_page 502 =404 /vod-not-found;
}
location = /vod-not-found {
return 404;
}
location /stream/ {