Hello. Let me describe my situation. In Ukraine traffic to outside world costs much more than ukrainian trafiic, so I want to save my money and make "mirror" stream server. I set up icecast 1.3 server in USA and now I want to relay stream. Encoder connects to my ukrainian server and sends stream, and users are able to listen; now I want users to be able to connect to US mirror and listen same stream. I just set up alias like alias / http://195.245.80.76:8000/ but after connection and requesting `GET / HTTP/1.0' I receive error 404: stream not found. In logs I see [4:Connection Handler] Kicking unknown 0 [127.0.0.1] [No encoder], connected for 7 seconds But I have no need in encoder! Default stream should be just an alias to my ukrainian server. Any ideas how can I fix it? PS. Appropriate parts of config: mount_fallback 1 port 8000 port 8001 server_name dynamic force_servername 0 client_timeout -1 kick_clients 0 alias / http://195.245.80.76:8000/ kick_relays 100 transparent_proxy 0 allow client * allow admin 195.245.81.26 allow admin 195.245.80.26 allow admin 127.0.0.1 allow source 195.245.81.26 allow source 195.245.80.26 allow source 195.245.80.76 -- WBR, Alexander A. Vlasov +38(039)2476081
Icecast 1.x is unsupported and deprecated. If you have any difficulties getting this working with icecast 2.2, please let us know and we'll help you in any way we can. Mike On 6/9/05, Alexander A. Vlasov <listreader@rambler.ru> wrote:> Hello. > > Let me describe my situation. In Ukraine traffic to outside world costs > much more than ukrainian trafiic, so I want to save my money and make > "mirror" stream server. > I set up icecast 1.3 server in USA and now I want to relay stream. > Encoder connects to my ukrainian server and sends stream, and users are > able to listen; now I want users to be able to connect to US mirror and > listen same stream. > I just set up alias like > alias / http://195.245.80.76:8000/ > but after connection and requesting `GET / HTTP/1.0' I receive error > 404: stream not found. In logs I see > [4:Connection Handler] Kicking unknown 0 [127.0.0.1] [No encoder], > connected for 7 seconds > > But I have no need in encoder! Default stream should be just an alias to > my ukrainian server. > Any ideas how can I fix it? > > PS. Appropriate parts of config: > > mount_fallback 1 > port 8000 > port 8001 > server_name dynamic > force_servername 0 > client_timeout -1 > kick_clients 0 > alias / http://195.245.80.76:8000/ > kick_relays 100 > transparent_proxy 0 > allow client * > allow admin 195.245.81.26 > allow admin 195.245.80.26 > allow admin 127.0.0.1 > allow source 195.245.81.26 > allow source 195.245.80.26 > allow source 195.245.80.76 > > > -- > WBR, Alexander A. Vlasov > +38(039)2476081 > _______________________________________________ > Icecast mailing list > Icecast@xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >
Alexander A. Vlasov wrote:> I just set up alias like > alias / http://195.245.80.76:8000/ > but after connection and requesting `GET / HTTP/1.0' I receive error > 404: stream not found. In logs I see > [4:Connection Handler] Kicking unknown 0 [127.0.0.1] [No encoder], > connected for 7 secondsFirst, as has already been said, Icecast 1.x is deprecated and is no longer supported. And for those wanting on-demand relays, this code was just commited to SVN so expect it in the next release. I've got this old manual lying around, and it has the following to say which might be helpful: Prior to the 1.3.8 release, the requested stream URL had to match the alias exactly, using the server_name as the host part of the URL. For instance, if you added: alias add /cool http://cool.co:8000/cool, then if a user requested http://your.server.name:8000/cool then it would work fine, but if he requested http://localhost:8000/cool or http://your:8000/cool or perhaps the ip, it wouldn't work at all. Starting with 1.3.8, you can specify the keyword 'whatever' as host, and thus match all hosts in the request, like so: alias add http://whatever:8000/cool http://cool.co:8000/cool. Geoff.