Discussion:
[Icecast] 404 error => stream redirect / relay
Ladislav Soukup
2015-06-04 10:45:05 UTC
Permalink
Is there any known way how to redirect all 404 errors to a stream?
I can see many request to non-existing publish points (mostly old streams
that are no longer active) and I would like to redirect them to one
specific mount with audio loop (looped stream)... but I don't want to
create relay streams manually for each non-existing pubpoint, but rather
create one general "404 relay"...
Any ideas, please?
--
*Ladislav Soukup*
*specialista vÜvoje IT aplikací*

mobil: +420 731 101 538
email: ***@play.cz

<https://plus.google.com/u/0/+LadislavSoukup>
<https://www.facebook.com/ladislav.soukup> <https://twitter.com/LadaSoukup>
<http://www.linkedin.com/in/ladislavsoukup>

*PLAY.CZ <http://PLAY.CZ>, a.s.*
Na Pankráci 1618/30
140 00 Praha 4
Yahav Shasha
2015-06-04 10:51:22 UTC
Permalink
Well that is a new attribute to 2.4.1 but if i understand it correctly it
might just be what you're looking for:
try to set a mount with type "default" and set the fallback/relay on it.
http://icecast.org/docs/icecast-2.4.1/config-file.html#mountsettings
Post by Ladislav Soukup
Is there any known way how to redirect all 404 errors to a stream?
I can see many request to non-existing publish points (mostly old streams
that are no longer active) and I would like to redirect them to one
specific mount with audio loop (looped stream)... but I don't want to
create relay streams manually for each non-existing pubpoint, but rather
create one general "404 relay"...
Any ideas, please?
--
*Ladislav Soukup*
*specialista vÜvoje IT aplikací*
mobil: +420 731 101 538
<https://plus.google.com/u/0/+LadislavSoukup>
<https://www.facebook.com/ladislav.soukup>
<https://twitter.com/LadaSoukup>
<http://www.linkedin.com/in/ladislavsoukup>
*PLAY.CZ <http://PLAY.CZ>, a.s.*
Na Pankráci 1618/30
140 00 Praha 4
_______________________________________________
Icecast mailing list
http://lists.xiph.org/mailman/listinfo/icecast
--
Yahav Shasha,
Web Developer
+972-(0)549214421
http://www.linkedin.com/in/yahavs
Ladislav Soukup
2015-06-04 12:52:34 UTC
Permalink
ooohhh :) interesting... didn't think about that... I was stuck on catching
404 and there is a new default mount config...
I will try this... after quick test, there are some problems with the
default mount, but it may be because of wrong configuration... I will have
to experiment with the settings.

thanks :)
--
*Ladislav Soukup*
*specialista vÜvoje IT aplikací*

mobil: +420 731 101 538
email: ***@play.cz

<https://plus.google.com/u/0/+LadislavSoukup>
<https://www.facebook.com/ladislav.soukup> <https://twitter.com/LadaSoukup>
<http://www.linkedin.com/in/ladislavsoukup>

*PLAY.CZ <http://PLAY.CZ>, a.s.*
Na Pankráci 1618/30
140 00 Praha 4

<http://www.play.cz/> <http://focenomobilem.cz/>

<http://jablickar.cz/> <http://youtuberi.net/>
Eduardo Martinez
2015-06-04 16:50:33 UTC
Permalink
Alternatively, you could parse your logs for 404s, and generate a long list
of aliases to existing streams. This would give you more control over the
content.
Post by Ladislav Soukup
ooohhh :) interesting... didn't think about that... I was stuck on
catching 404 and there is a new default mount config...
I will try this... after quick test, there are some problems with the
default mount, but it may be because of wrong configuration... I will have
to experiment with the settings.
thanks :)
--
*Ladislav Soukup*
*specialista vÜvoje IT aplikací*
mobil: +420 731 101 538
<https://plus.google.com/u/0/+LadislavSoukup>
<https://www.facebook.com/ladislav.soukup>
<https://twitter.com/LadaSoukup>
<http://www.linkedin.com/in/ladislavsoukup>
*PLAY.CZ <http://PLAY.CZ>, a.s.*
Na Pankráci 1618/30
140 00 Praha 4
<http://www.play.cz/> <http://focenomobilem.cz/>
<http://jablickar.cz/> <http://youtuberi.net/>
_______________________________________________
Icecast mailing list
http://lists.xiph.org/mailman/listinfo/icecast
Continue reading on narkive:
Loading...