| View previous topic :: View next topic |
| Author |
Message |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Tue Sep 30, 2008 2:18 pm Post subject: Port 80 for firewalled listeners? |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Sep 30, 2008 3:45 pm Post subject: |
|
|
sure, just add another <listen-socket> group for port 80
karl. |
|
| Back to top |
|
 |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Thu Oct 02, 2008 11:36 pm Post subject: |
|
|
Lovely, thanks  |
|
| Back to top |
|
 |
cookiesunshinex
Joined: 27 Dec 2008 Posts: 18
|
Posted: Sat Dec 27, 2008 6:21 pm Post subject: |
|
|
| Is this possible if you are already running an apache http server on port 80 on the same server? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Dec 27, 2008 6:29 pm Post subject: |
|
|
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 |
|
 |
cookiesunshinex
Joined: 27 Dec 2008 Posts: 18
|
Posted: Sat Dec 27, 2008 9:17 pm Post subject: |
|
|
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 |
|
 |
|