1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #277, support http vhost mount.

This commit is contained in:
winlin 2015-01-18 16:38:26 +08:00
parent 4513486266
commit 2742c0d3c2
5 changed files with 32 additions and 11 deletions

View file

@ -336,8 +336,8 @@ vhost ingest.srs.com {
# default: off.
enabled off;
# output stream. variables:
# [vhost] current vhost which start the ingest.
# [port] system RTMP stream port.
# [vhost] current vhost which start the ingest.
# [port] system RTMP stream port.
output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
}
}
@ -351,9 +351,12 @@ vhost http.srs.com {
# default: off
enabled on;
# the virtual directory root for this vhost to mount at
# for example, if mount to /hls, user access by http://server/hls
# default: /
mount /hls;
# for example, if mount to [vhost]/hls, user access by http://[vhost]/hls
# the variables:
# [vhost] current vhost for http server.
# @remark the http of __defaultVhost__ will override the http_stream section.
# default: [vhost]/
mount [vhost]/hls;
# main dir of vhost,
# to delivery HTTP stream of this vhost.
# default: ./objs/nginx/html

View file

@ -8,10 +8,10 @@ http_stream {
listen 8080;
dir ./objs/nginx/html;
}
vhost __defaultVhost__ {
vhost ossrs.net {
http {
enabled on;
mount /default;
mount [vhost]/;
dir ./objs/nginx/html;
}
}