我需要您的帮助:)
我的Nginx具有默认设置和URL视图:domain.com/download/。我的任务是–对于具有单独IP的每个用户,我必须为此URL domain.com/download/获得单独的文件。我必须记录所有这些连接。我该怎么办?
例如:
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:5
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MAP:URI="v-0576p-1400k-libx264-init.mp4"
#EXTINF:4.000,
v-0576p-1400k-libx264-s1.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s2.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s3.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s4.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s5.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s6.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s7.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s8.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s9.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s10.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s11.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s12.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s13.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s14.mp4
#EXTINF:4.000,
v-0576p-1400k-libx264-s15.mp4
#EXT-X-ENDLIST
和日志视图:
1 user have IP 1.1.1.1 -> get file1
2 user have IP 2.2.2.2 -> get file2
.....................
N user have IP N.N.N.N -> get fileN