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 

Port 80 for firewalled listeners?

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



Joined: 15 Dec 2007
Posts: 88

PostPosted: Tue Sep 30, 2008 2:18 pm    Post subject: Port 80 for firewalled listeners? Reply with quote

Hello, Im running icecast server on windows 2003 server. A few of our listeners are firewalled & cant listen on port 8000 we are streaming on. How do I set up an alternate port 80 for them? Can icecast stream 2 ports at the same time? And what code do I need to add to my config file?
Thanks
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Sep 30, 2008 3:45 pm    Post subject: Reply with quote

sure, just add another <listen-socket> group for port 80

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
peepo



Joined: 15 Dec 2007
Posts: 88

PostPosted: Thu Oct 02, 2008 11:36 pm    Post subject: Reply with quote

Lovely, thanks Smile
Back to top
View user's profile Send private message
cookiesunshinex



Joined: 27 Dec 2008
Posts: 18

PostPosted: Sat Dec 27, 2008 6:21 pm    Post subject: Reply with quote

Is this possible if you are already running an apache http server on port 80 on the same 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: Sat Dec 27, 2008 6:29 pm    Post subject: Reply with quote

multiple services cannot occupy the same ip/port as which service would get the requests, but you could make the web server forward the requests to icecast (like a proxy) if they are for a certain domain.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cookiesunshinex



Joined: 27 Dec 2008
Posts: 18

PostPosted: Sat Dec 27, 2008 9:17 pm    Post subject: Reply with quote

I did a quick search of apache configuration and this is what I have come up with for apache proxy forwarding to another port

<VirtualHost *:80>
ServerName myradiostation.com
ServerAlias www.myradiostation.com
DocumentRoot /home/myradiostation/public_html
</VirtualHost>

<VirtualHost *:80>
ServerName radio.myradiostation.com
ServerAlias www.radio.myradiostation.com
DocumentRoot /home/myradiostation/public_html
ProxyPass / http://127.0.0.1:8000
ProxyPassReverse / http://127.0.0.1:8000
ProxyPassReverse / http://radio.myradiostation.com:8000
</VirtualHost>

Your website will be at http://www.myradiostation.com whereas your link embedded into HTML pages at www.myradiostation.com, will be http://radio.myradiostation.com which is then proxied to port 8000, but served to browsers and audio clients at port 80.

The reason, you need two virtual hosts, is because if you have normal port 80 traffic (HTML, PHP, etc.) that you want to serve up at www.myradiostation.com, it would be forwarded to port 8000 if you did not have two virtual host definitions.

Does anybody know if this will work?

and of course, there could be alot more lines in each <virtualhost> definition, but only those relevant to proxying are mentioned here.
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