Open lystormenvoy opened 1 year ago
No, but what you can do is edit the proxied URL in location ^~ /group
.
For example, something like this -
location ~ /group([^/]+)/vod_back/(.*) {
proxy_pass http://dfs_server/group$1/$2;
}
ok,I will evaluate it
I am testing remote mode my config in nginx:
When I visited
https://gx.avawe.cn/vod_back/group1/M0/00/53/wKgl4GSBUCyEACibAAAAAIsTOIM935.mp4/index.m3u8
it seems to proxy to/group1/vod_back/group1/M0/00/53/wKgl4GSBUCyEACibAAAAAIsTOIM935.mp4
Because I fount the access log print :192.168.37.224 - - [03/Aug/2023:13:59:27 +0800] "GET /group1/vod_back/group1/M0/00/53/wKgl4GSBUCyEACibAAAAAIsTOIM935.mp4 HTTP/1.0" 400 150 "-" "VLC/3.0.18 LibVLC/3.0.18"
When I visited
https://gx.avawe.cn/vod_back/M0/00/53/wKgl4GSBUCyEACibAAAAAIsTOIM935.mp4/index.m3u8
it seems to proxy to/group1/vod_back/M0/00/53/wKgl4GSBUCyEACibAAAAAIsTOIM935.mp4
Because I fount the access log print :192.168.37.224 - - [03/Aug/2023:13:59:27 +0800] "GET /group1/vod_back/M0/00/53/wKgl4GSBUCyEACibAAAAAIsTOIM935.mp4 HTTP/1.0" 400 150 "-" "VLC/3.0.18 LibVLC/3.0.18"
So is there any way make it proxy to
/group1/M0/00/53/wKgl4GSBUCyEACibAAAAAIsTOIM935.mp4