Icecast on a subdirectory
  • Hi,
    I'm having trouble getting airtime to stream to an icecast install hosted on a subdirectory.

    Icecast is running on port 8000 but I have no access to this port since the server is hosted by our university. So to get around this I have proxied airtime and icecast through nginx for access via port 80. Right now airtime sits on radio.domain.com and icecast can be accessed via radio.domain.com/stream/

    In order to stream to icecast I have to use the port 8000 (radio.domain.com:8000/mountpoint) address which works internally but is useless outside of the machine itself. This means that the streams from within the airtime interface are inaccessible as they refer to radio.domain.com:8000/mountpoint. If I take this address and modify it to radio.domain.com/stream/mountpoint it works perfectly.

    Now if I try to tell airtime to stream to radio.domain.com/stream/mountpoint I get a variety of errors.
    Setting the host to radio.domain.com/stream gives an invalid character error because of the /
    Setting the mountpoint to stream/mountpoint gives
    401, Authentication Required (HTTP/1.1) error which makes me thing it's hitting the icecast panel.

    So has anyone managed to do this before or have any ideas as to where I'm going wrong? It seems like a limitation in airtime to me.

    Regards,
    Padraic
  • 4 Comments sorted by
  • How about just using an .htaccess rewrite?
    No longer using Airtime or Libretime.
  • I looked at using mod_rewrite but from what I can gather it only rewrites urls as they hit the server. As port 8000 is firewalled the :8000 urls never hit the server and just time out.

    Based off your suggestion I looked into mod_subsitution to replace instances of .com:8000 with .com/stream

    This seems to work pretty good so far and since it's only acting on the airtime vhost the performance impact should be negligible. I looked for a way to restrict it to a certain file but couldn't figure it out.
  • I think you can. I was thinking of something like the bottom answer here:

    http://stackoverflow.com/questions/15821444/change-port-and-host-using-htaccess
    No longer using Airtime or Libretime.
  • No matter what you do if the port is not open to the outside ,nobody external to your lan can see it.
    unless you can trigger the port,similar to upnp.
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.