Page 1 of 1

Setup mediabrowser access through apache mod_proxy

PostPosted: Tue Oct 09, 2012 12:27 am
by plalloni
I'm trying to setup access to serviio's mediabrowser through apache's mod_proxy, but it refuses to log me in...

At first I just I added this two lines to apache conf:

  Code:
ProxyPass /serviio/ http://localhost:23424/mediabrowser/
ProxyPassReverse /serviio/ http://localhost:23424/mediabrowser/


Then accessing to http(s)://<host>/serviio/ shows the mediabrowser login page correctly but when I try to login it doesn't work, a message asking to check the password and try again appears.

After looking at apache's logs I'found the app tries to access "/cds/login" absolute uri so, while not very happy about it, I added this apache conf lines:

  Code:
ProxyPass /cds/ http://localhost:23424/cds/
ProxyPassReverse /cds/ http://localhost:23424/cds/


After restart and try again, it still behaves the same way.

All I see in logs is the webapp makes an OPTION request to /cds/login which apache forwards to http://localhost:23424/cds/login...

Any idea of how to get this working?

Re: Setup mediabrowser access through apache mod_proxy

PostPosted: Tue Oct 09, 2012 6:42 am
by will

Re: Setup mediabrowser access through apache mod_proxy

PostPosted: Tue Oct 09, 2012 12:42 pm
by plalloni
@will, thanks for your answer, it worked removing the ending / character in all uris I was using.

So it ended up like this:

  Code:
ProxyPass /serviio http://localhost:23424/mediabrowser
ProxyPassReverse /serviio http://localhost:23424/mediabrowser
ProxyPass /cds http://localhost:23424/cds
ProxyPassReverse /cds http://localhost:23424/cds


Now if only mediabrowser media player were working...

Re: Setup mediabrowser access through apache mod_proxy

PostPosted: Tue Oct 09, 2012 9:00 pm
by zip
plalloni wrote:Now if only mediabrowser media player were working...

What's not working?

Re: Setup mediabrowser access through apache mod_proxy

PostPosted: Wed Oct 10, 2012 9:56 am
by plalloni
zip wrote:What's not working?

The flash player in mediabrowser, when we try to play any content after showing the 'loading indicator' for a while it reports "200, Stream not found, ..." and the URI of what seems to be the content stream.

This happens both through apache and directly browsing mediabrowser http server, so I was about to post this on a new thread... but since you asked... thanks for asking.

Re: Setup mediabrowser access through apache mod_proxy

PostPosted: Wed Oct 10, 2012 10:38 am
by zip
Look at the log, I presume it's FFmpeg failing. Make sure you have an up-to-date version or build it from the sources on Serviio download page.