liteFun
Joined: 13 Jan 2006 Posts: 79
|
Posted: Sun Sep 05, 2010 3:11 pm Post subject: Tip to "integrate" Icecast with Apache |
|
|
How to integrate Icecast on subdomain (virtual host) with Apache and dropping out real port Icecast uses:
http://blogs.linux.ie/fuzzbucket/2008/04/12/proxying-icecast-through-apache2-another-mini-howto/
So how this works?
Let's say you have domain example.org, and your server on that address is running Apache for web services. All www.example.org and example.org are your www-things.
Then, you set up stream.example.org, and point it with A or CNAME record to the same example.org server.
Next thing is to configure Icecast to use localhost (127.0.0.1) and optionally set Icecast's servername to stream.example.org.
Last configuration you do is to add those vhost settings in Apache config and restart Apache.
Now your Icecast should be accessed through Apache, and no need to open external 8000 (or whatever) port in your firewall. Only internal 8000 will be needed to open if it isn't already open.
So you need only external port 80 open, and a subdomain for Icecast to use.
Your Icecast-stream will look like regular file on your listening url, for example http://stream.example.org/mountpoint.aac.
Works fine, only negative thing is that I now see listeners coming from 127.0.0.1 and don't see their real IP's. So not sure if there are multiple connections from same real IP. If you need country-specific restrictions for listeners, you need to manage them for Apache or firewall software. |
|