winlin

update the conf of http static and stream.

... ... @@ -350,11 +350,23 @@ vhost http.static.srs.com {
# whether enabled the http static service for vhost.
# default: off
enabled on;
# the virtual directory root for this vhost to mount at
# for example, if mount to [vhost]/hls, user access by http://[vhost]/hls
# the url to mount to,
# typical mount to [vhost]/
# the variables:
# [vhost] current vhost for http server.
# @remark the [vhost] is optional, used to mount at specified vhost.
# @remark the http of __defaultVhost__ will override the http_stream section.
# for example:
# mount to [vhost]/
# access by http://ossrs.net/xxx.html
# mount to [vhost]/hls
# access by http://ossrs.net/hls/xxx.html
# mount to /
# access by http://ossrs.net/xxx.html
# or by http://192.168.1.173/xxx.html
# mount to /hls
# access by http://ossrs.net/hls/xxx.html
# or by http://192.168.1.173/hls/xxx.html
# default: [vhost]/
mount [vhost]/hls;
# main dir of vhost,
... ... @@ -364,7 +376,7 @@ vhost http.static.srs.com {
}
}
# vhost for http flv live stream for each vhost.
# vhost for http flv/aac/mp3 live stream for each vhost.
vhost http.flv.srs.com {
# http flv stream vhost specified config
http_flv {
... ... @@ -377,15 +389,26 @@ vhost http.flv.srs.com {
# default: 30
fast_cache 30;
# the stream mout for rtmp to remux to flv live streaming.
# for example, if mount to [vhost]/[app]/[stream].flv, user access by http://[vhost]/[app]/[stream].flv
# typical mount to [vhost]/[app]/[stream].flv
# the variables:
# [vhost] current vhost for http flv live stream.
# [app] current app for http flv live stream.
# [stream] current stream for http flv live stream.
# @remark the [vhost] is optional, used to mount at specified vhost.
# the extension:
# .flv mount http live flv stream, use default gop cache.
# .mp3 mount http live mp3 stream, ignore video and audio mp3 codec required.
# .aac mount http live aac stream, ignore video and audio aac codec required.
# for example:
# mount to [vhost]/[app]/[stream].flv
# access by http://ossrs.net/live/livestream.flv
# mount to /[app]/[stream].flv
# access by http://ossrs.net/live/livestream.flv
# or by http://192.168.1.173/live/livestream.flv
# mount to [vhost]/[app]/[stream].mp3
# access by http://ossrs.net/live/livestream.mp3
# mount to [vhost]/[app]/[stream].aac
# access by http://ossrs.net/live/livestream.aac
# default: [vhost]/[app]/[stream].flv
mount [vhost]/[app]/[stream].flv;
}
... ...