| View previous topic :: View next topic |
| Author |
Message |
djpatzo
Joined: 05 Jul 2008 Posts: 3
|
Posted: Sat Jul 05, 2008 11:07 am Post subject: How can I enabling port 80 for Icecast |
|
|
I want to enable port 80 for icecast, but I have Apache2 server already installed on this icecast server. Thanks!
p.s. I can't speak english very well. Sorry!!! |
|
| Back to top |
|
 |
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Sat Jul 05, 2008 11:08 am Post subject: Re: How can I enabling port 80 for Icecast |
|
|
| djpatzo wrote: |
I want to enable port 80 for icecast, but I have Apache2 server already installed on this icecast server. Thanks!
p.s. I can't speak english very well. Sorry!!! |
Impossible to have both on port 80. Use a different machine on a different IP. |
|
| Back to top |
|
 |
djpatzo
Joined: 05 Jul 2008 Posts: 3
|
Posted: Sat Jul 05, 2008 11:14 am Post subject: |
|
|
| On this machine where is the apache2 server cannot use port 80 for icecast? |
|
| Back to top |
|
 |
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Sat Jul 05, 2008 11:19 am Post subject: |
|
|
One port is for one app. If Apache runs on 80, Icecast cannot run on the same. Change Apache to something else (port 81, for example), and you have free 80 for incecast.
Why do you want Icecast on 80? Use 8080, or 8000 or anything else... |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Jul 05, 2008 12:46 pm Post subject: |
|
|
The only way you can use a port 80 for different apps is if those apps are listening on different IP addresses. Normally all interfaces/IPs are listened on but you can be specific (using bind) but you would need multiple IP addresses for that to work.
The only other possibility is to make apache act a proxy for icecast. Apache would then forward requests to icecast
karl. |
|
| Back to top |
|
 |
liteFun
Joined: 13 Jan 2006 Posts: 79
|
Posted: Sat Jul 05, 2008 5:25 pm Post subject: |
|
|
For apache you can set virtual host for port 80:
<VirtualHost music.yourdomain.net:80>
Servername music.yourdomain.net
Redirect 301 / http://music.yourdomain.net:8000/
</VirtualHost>
So, when otherwise apache etc configured properly, when you use www.yourdomain.net it will open main www page, but music.yourdomain.net will open icecast status page.
It will just redirect permanently everything from music.yourdomain.net:80 to music.yourdomain.net:8000/ and for me that worked fine on my project server. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Jul 06, 2008 1:27 am Post subject: |
|
|
A redirect to a different port like 8000 won't work if port 8000 is blocked. Using a similar definition but to forward requests may work well enough.
karl. |
|
| Back to top |
|
 |
liteFun
Joined: 13 Jan 2006 Posts: 79
|
Posted: Sun Jul 06, 2008 5:22 pm Post subject: |
|
|
I use that above virtualhost-redirect just for one specific subdomain.
I tried to configure apache proxy, but couldn't get it work, so I found that redirect to work for me. |
|
| Back to top |
|
 |
djpatzo
Joined: 05 Jul 2008 Posts: 3
|
Posted: Sun Jul 06, 2008 11:24 pm Post subject: |
|
|
Thanks !!! My radio can be listening in winamp without port which i set up.
The mistery is in this
| Code: |
<VirtualHost ......>
ServerName .......
Redirect 301 / http://.....
</VirtualHost> |
|
|
| Back to top |
|
 |
|