You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -247,12 +247,13 @@ The directives `rtmp_auto_push`, `rtmp_auto_push_reconnect` and `rtmp_socket_dir
247
247
248
248
It's better to specify the directive `worker_processes` as 1, because `ngx_rtmp_stat_module` may not get statistics from a specified worker process in multi-processes mode, for HTTP requests are randomly distributed to worker processes. `ngx_rtmp_control_module` has the same problem. The problem can be optimized by this patch [per-worker-listener](https://github.com/arut/nginx-patches/blob/master/per-worker-listener).
249
249
250
-
In addtion, `vhost` feature is not perfect in multi-processes mode yet, waiting to be fixed. For example, the following configuration is OK in multi-processes mode:
250
+
In addtion, `vhost` feature is not perfect in multi-processes mode yet, waiting to be fixed. For example, whichever domain name streams are pushed to, the following configuration is OK in multi-processes mode:
251
251
252
252
rtmp {
253
253
...
254
254
server {
255
255
listen 1935;
256
+
server_name 1st_domain_name;
256
257
257
258
application myapp {
258
259
...
@@ -261,7 +262,7 @@ In addtion, `vhost` feature is not perfect in multi-processes mode yet, waiting
261
262
262
263
server {
263
264
listen 1935;
264
-
server_name localhost;
265
+
server_name 2nd_domain_name;
265
266
266
267
application myapp {
267
268
...
@@ -275,6 +276,7 @@ While the following configuration doesn't work for play requests distinated to t
275
276
...
276
277
server {
277
278
listen 1935;
279
+
server_name 1st_domain_name;
278
280
279
281
application myapp {
280
282
...
@@ -283,7 +285,7 @@ While the following configuration doesn't work for play requests distinated to t
0 commit comments