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">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">On 28 February 2011 20:21, Sebastien Bordes <span dir="ltr"><<a href="mailto:sebastien.bordes@webeo.fr">sebastien.bordes@webeo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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>_______________________________________________<br>
Icecast mailing list<br>
<a href="mailto:Icecast@xiph.org">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>