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 

Icecast as a WEBSERVER???

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



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Sun Jan 15, 2012 5:34 pm    Post subject: Icecast as a WEBSERVER??? Reply with quote

this sounds silly, I know.. but actually... its NOT a bad idea!

at this moment, its just an IDEA... but how well would Icecast hold up to benig a web server for simple webpages?

the advantage to using Icecast is that I can then directly-embed the stream into the site.. and save myself a port or 2

(the reason for all of this is because at the moment, the host isn't letting me disable their "managed" version of Apache, and they're not letting me install anything ELSE.. I have tried to install Apache AND I got it working, however, I can't seem to get any of the MODULES (addins) working, okay, they would work.. but they don't even EXIST! which makes this particular install of Apache nothing more than a simple 'dumb' web server.. so, why not just use Icecast then, instead?

(I DO use Icecast's web server to serve a simple XML page that drives a LED marquee)

just a silly thought! opinions are welcome!
_________________
-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Jan 15, 2012 5:58 pm    Post subject: Reply with quote

it is already a simple one, the xsl pages you request have links to image files which are served for things like icons, other flat file contents should also go through. The question is what else above that would be useful, obviously calling php or perl is another level.

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



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Sun Jan 15, 2012 7:21 pm    Post subject: Reply with quote

hi karl

and EXACTLY..

I'm still having a problem with that now.. (calling php and rewrite in apache)

it was just a silly thought.. but too bad I couldn't do those things in icecast.. I also winder just hw "robust"icecast would be as a webserver

btw, and, of course you know this.. others might not...

if you set fileserver on, then icecast will serve webpages normally like any other webserver, of course no SSIs or php/rewrite fun...

some basic permission control woud be neat too.. like an .htaccess file or whatnot.. (I use Icecast to serve a dynamic page thats generated by an eggdrop bot to control a LED marquee.. the only "security", however, is I use some really strange filename hoping that noone will guess it hehehe
_________________
-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Jan 15, 2012 10:18 pm    Post subject: Reply with quote

Handling external scripts will be a different load pattern for sure, conceptually it could be done but whether it's worth the development time to fix it up is another matter. The other possibility is working like a proxy.

You should be able to use a mount with <authentication type=... on files even with 2.3.2

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



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Tue Jan 17, 2012 9:19 pm    Post subject: Reply with quote

actually, I have gotten Apache working properly.. WOW!


oh wait! you mean i can call up a proxy to ANY file and icecast will serve it up withot it beig in the website directory?

I understand what I [think] you're saying.. I'll have to give that a try!

I'll report back my findings...
_________________
-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jan 17, 2012 9:48 pm    Post subject: Reply with quote

The file would need to be in webroot but auth can be applied on it. The 2.3.2 code doesn't apply wildcards but the kh build does so a mount-name of /content/* and an authentication block would apply to files in /content

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



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Tue Jan 17, 2012 11:16 pm    Post subject: Reply with quote

a-hah!

the authentication is an interesting idea, though.. I have already thought of that, however, the "reader" can't auth, though... since its a eggdrop in a cgywin shell under windows (TCL native sockets can NOT auth)

good call, though! Smile
_________________
-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
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