update the conf of http static and stream.

pull/133/head
winlin 10 years ago
parent 463f75f1c9
commit e5ef4c2e66

@ -350,11 +350,23 @@ vhost http.static.srs.com {
# whether enabled the http static service for vhost. # whether enabled the http static service for vhost.
# default: off # default: off
enabled on; enabled on;
# the virtual directory root for this vhost to mount at # the url to mount to,
# for example, if mount to [vhost]/hls, user access by http://[vhost]/hls # typical mount to [vhost]/
# the variables: # the variables:
# [vhost] current vhost for http server. # [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. # @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]/ # default: [vhost]/
mount [vhost]/hls; mount [vhost]/hls;
# main dir of vhost, # 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 { vhost http.flv.srs.com {
# http flv stream vhost specified config # http flv stream vhost specified config
http_flv { http_flv {
@ -377,15 +389,26 @@ vhost http.flv.srs.com {
# default: 30 # default: 30
fast_cache 30; fast_cache 30;
# the stream mout for rtmp to remux to flv live streaming. # 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: # the variables:
# [vhost] current vhost for http flv live stream. # [vhost] current vhost for http flv live stream.
# [app] current app for http flv live stream. # [app] current app for http flv live stream.
# [stream] current stream 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: # the extension:
# .flv mount http live flv stream, use default gop cache. # .flv mount http live flv stream, use default gop cache.
# .mp3 mount http live mp3 stream, ignore video and audio mp3 codec required. # .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. # .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 # default: [vhost]/[app]/[stream].flv
mount [vhost]/[app]/[stream].flv; mount [vhost]/[app]/[stream].flv;
} }

Loading…
Cancel
Save