Page 1 of 1

nginx: extra include *.conf ignored resulting in 404

Posted: Mon Jan 07, 2019 3:40 pm
by andrewc2
I've got kinda a unique setup here. I'm running the latest vesta cp, with nginx. I've followed a guide to build RTMP into the stock nginx copy, which worked great, and that portion is working fine! I'm able to ingest via RTMP which has it's config in

Code: Select all

/etc/nginx/nginx.conf
The problem I have is there's a few config pieces that need to go into the

Code: Select all

server { ... }
section that is attached to the main domain in order for it's stats, player, and the main .m3u8 file to be served. I added an

Code: Select all

include /home/user/player.conf;
to

Code: Select all

/home/admin/conf/web/domain.com.nginx.conf
within where it should be located.

I've restarted nginx without issue, but when I try to go to domain.com/player/ which worked on my old non vestacp install, it still 404's and shows in the error log the server tried serving the page from the admin web directory.