K
K
kott9ra2018-06-29 13:32:19
Nginx
kott9ra, 2018-06-29 13:32:19

Setting up NGINX for video streaming?

There are folders
/home/user/video/web/
/home/user/video/funny/
/home/user/video/sport/
Each of the folders contains folders 360, 480, 720, 1024
Judging by the name, it is clear that there are videos files with these permissions.
How can nginx be configured to request
example.com/video/web/my_first-video.360.mp4
example.com/video/web/my_second-video.1024.mp4
example.com/video/web/my_third-video. 480.mp4
Collected data from the /home/user/video/web/ folder
At the request
example.com/video/funny/my_first-video.360.mp4
example.com/video/funny/my_second-video.720.mp4
example. com/video/funny/my_third-video.1024.mp4
Picked up data from the /home/user/video/funny/ folder

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Pugachev, 2018-06-29
@kott9ra

you can make a location with a regular expression in which to determine the group responsible for the folder
, then try_files to this folder and that's it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question