Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I enabling port 80 for Icecast

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
djpatzo



Joined: 05 Jul 2008
Posts: 3

PostPosted: Sat Jul 05, 2008 11:07 am    Post subject: How can I enabling port 80 for Icecast Reply with quote

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
View user's profile Send private message
robertut



Joined: 31 Aug 2007
Posts: 156

PostPosted: Sat Jul 05, 2008 11:08 am    Post subject: Re: How can I enabling port 80 for Icecast Reply with quote

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
View user's profile Send private message
djpatzo



Joined: 05 Jul 2008
Posts: 3

PostPosted: Sat Jul 05, 2008 11:14 am    Post subject: Reply with quote

On this machine where is the apache2 server cannot use port 80 for icecast?
Back to top
View user's profile Send private message
robertut



Joined: 31 Aug 2007
Posts: 156

PostPosted: Sat Jul 05, 2008 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Jul 05, 2008 12:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
liteFun



Joined: 13 Jan 2006
Posts: 79

PostPosted: Sat Jul 05, 2008 5:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Jul 06, 2008 1:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
liteFun



Joined: 13 Jan 2006
Posts: 79

PostPosted: Sun Jul 06, 2008 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
djpatzo



Joined: 05 Jul 2008
Posts: 3

PostPosted: Sun Jul 06, 2008 11:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber