Yes I do but the hostname tag is only used for stream information...<br><br>I tried a lod of proxy configuration and none of them are working, the best I'd done is to have the <a href="http://radio.mydomain.com:8000/mystream.ogg">http://radio.mydomain.com:8000/mystream.ogg</a> url<br>
<br>Perhaps I miss something...<br><br>To achieve what I want I think that it's necessary to override the int fserve_client_create function to smartly manage host and port when the icecast server is proxied by apache httpd with mod_proxy, I will continue to explorer proxying parameters but I didn't see where the host and port is retrieved by the icecast configuration manager...<br>
<br>Thx for your reply<br><br> <br><div class="gmail_quote">2011/3/1 Leo Currie <span dir="ltr"><<a href="mailto:leo.currie@gmail.com">leo.currie@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I assume you have already tried setting the <hostname> section in the config, and that it doesn't work?<br><a href="http://icecast.org/docs/icecast-2.3.2/icecast2_config_file.html#misc" target="_blank">http://icecast.org/docs/icecast-2.3.2/icecast2_config_file.html#misc</a><br>
<br>In that case, perhaps Icecast is picking up the server name from the http headers. Can you get your proxy to re-write the headers in the request? <br><br>Otherwise, you could just generate local m3u/xspf files for each stream?<br>
<br>- Leo<br><br><br><br><div class="gmail_quote"><div><div></div><div class="h5">On 28 February 2011 20:21, Sebastien Bordes <span dir="ltr"><<a href="mailto:sebastien.bordes@webeo.fr" target="_blank">sebastien.bordes@webeo.fr</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
Hello,<br><br>I'm a new user of icecast which is a really cool software.<br><br>I use it with the the http proxy module of apache httpd to do port forwarding with 2 sub domains.<br><br>On my router i forward all tcp traffic of the port 80 to my server.<br>
<br>2 Sub domains are redirected to my server : <br><br><a href="http://radio.mydomain.com" target="_blank">radio.mydomain.com</a> (icecast) <br><a href="http://music.mydomain.com" target="_blank">music.mydomain.com</a> (ampache)<br>
<br>my apache server host the ampache application with a dedicated virtual host.<br>
and use the proxy module to forward request to the icecast appliaction withe apropriated port.<br><br>The stream can be correctly listen inside and outside my network<br><br>But the problem is that the content of the m3u and xspf file use local url => 127.0.0.1 with local port<br>
<br>How can I change this generation , Is it possible to add a property (external url, external port) in the configuration file and to apply a patch on the fserve.c source file <br><br>Here is the code to change :<br><br>
<pre> <i> config = config_get_config();<br> snprintf (httpclient->refbuf->data, BUFSIZE,<br> "HTTP/1.0 200 OK\r\n"<br> "Content-Type: audio/x-mpegurl\r\n\r\n"<br>
"http://%s:%d%s\r\n", <br> config->hostname, config->port,<br> sourceuri<br> );<br> config_release_config();</i><br>
<br>
Or do you know an alternative to hide port to users..<br><br>Thanks<br></pre> <br>-------------------------------------------------------------------------------<br><font color="#888888"><a href="mailto:sebastien.bordes@gmail.com" target="_blank">sebastien.bordes@gmail.com</a> - <a href="http://blog.webeo.fr" target="_blank">http://blog.webeo.fr</a><br>
</font><br></div></div>_______________________________________________<br>
Icecast mailing list<br>
<a href="mailto:Icecast@xiph.org" target="_blank">Icecast@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/icecast" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
<br></blockquote></div><br>
</blockquote></div><br><br clear="all"><br>-- <br>-------------------------------------------------------------------------------<br><a href="mailto:sebastien.bordes@gmail.com">sebastien.bordes@gmail.com</a> - <a href="http://www.webeo.fr">http://www.webeo.fr</a><br>