Question / Help My First go - problem with nginx.conf

fredrum

New Member
Hi All,

I'm a complete noob with OBS and nginx so please have patience with my ignorance!

I am trying to install nginx on my Win8 box and installed it from the download here,
http://kevinworthington.com/nginx-for-windows/

It seems to have worked as far as getting it to run and show up in my browser with the NGINX welcome screen.

I am now trying to follow the instructions in https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/ and have gotten to the part of editing the nginx.config. It says to add these lines to the end,
Code:
rtmp {
        server {
                listen 1935;
                chunk_size 4096;

                application live {
                        live on;
                        record off;
                }
        }
}

But when I stop and restart I just get a 'unknown directive "rtemp"' error message.
I have tried putting it just before the last curly bracket and also after.


Could anyone guess what I am doing wrong?

Any help would be much appreciated. (also attaching my nginx.conf)
 

Attachments

  • nginx - Copy.txt
    3 KB · Views: 30

GodlessGeek

New Member
The problem is the nginx distribution you grabbed does not contain the rtmp module you need. Therefore, the nginx server you have installed does not recognize the rtmp protocal you've specified in the config file.

I use the version from Jack0r's website: http://design.jack0r.com/p/nginx-rtmp.html

I used the nginx1.7.4 rtmp1.1.4 version. Or, you can use: http://nginx-win.ecsds.eu/

If I recall correctly, Jack0r's version already had the config file setup for rtmp. You just have to modify that section to suit your needs.

More info here: http://www.helping-squad.com/nginx-rtmp-configuration-and-possible-solutions/
 
Top