Fenrirthviti / stream-site

Rachni - nginx RTMP streaming front end
Other
197 stars 71 forks source link

Route /watch 404 #33

Closed und3f1ned closed 6 years ago

und3f1ned commented 6 years ago

Getting 404 when trying to access to /watch/Admin (Admin – my username). I need the page to be always available. Even if the stream is offline. Where can I find something about this page in the code? Your nginx config is a quite messy. I can't figure out about how the user page constructed. Thank you!

Fenrirthviti commented 6 years ago

Check your nginx config that you set up the URL rewrites correctly. You don't have to be live for a page to display. I recently added an offline image for streams that are not online, but pages were always available.

See: https://github.com/Fenrirthviti/stream-site/blob/master/src/nginx/shared.conf for my example config on how this can be accomplished.

und3f1ned commented 6 years ago

Thank you! Missed this string https://github.com/Fenrirthviti/stream-site/blob/03cc0d74c51e6664896a810fd9cd35d5bf4397a7/src/nginx/shared.conf#L41