Page 1 of 1

mediabrowser behind subdomain

PostPosted: Mon Mar 25, 2013 6:41 pm
by pointer2null
Hi all.

I'm trying to put mediabrowser behind the subdomain as it's a royal pain having to type the port number and my partner isn't as computer savvy as I am so I want a nice simple url.

I can access media browser directly (http://www.mydomain.co.uk:23424/mediabrowser/) and it's fine so I know it's working ok. When I try and use the subdomain (media.mydomain.co.uk) I can see the login page, but it won't accept my password.

I'm getting an error in the log for each login attempt, but I'm not sure if this is due to a serviio issue or an apache config problem....

2013-03-25 18:31:16,224 WARN [ServiioStatusService] Returning error code to the REST layer: Method Not Allowed (405) - The method specified in the request is not allowed for the resource identified by the request URI


The apache config file looks like:
  Code:
<VirtualHost *:80>
    ServerName media.mydomain.co.uk
    ProxyRequests     Off
    ProxyPreserveHost On
    ProxyPass        / http://localhost:23424/mediabrowser/
    ProxyPassReverse / http://localhost:23424/mediabrowser/
</VirtualHost>


Any ideas?

Re: mediabrowser behind subdomain

PostPosted: Mon Mar 25, 2013 7:29 pm
by will
viewtopic.php?f=5&t=6852&p=49666#p49850

You need to set it up for both /mediabrowser (the webapp) and /cds (the api it uses)

Re: mediabrowser behind subdomain

PostPosted: Sun Mar 31, 2013 10:13 am
by pointer2null
Will,

Thanks for the tip. I'm still having problems making that work for a subdomain. The location directings work ok moving media browser to a better url, but I can't get it to work for a subdomain.

If I try this:
  Code:
<VirtualHost *:80>
    ServerName media.mysite.co.uk
    ProxyRequests     Off
    ProxyPreserveHost On
#    ProxyPass        /  http://localhost:23424/
#    ProxyPassReverse /  http://localhost:23424/
    <Location /mediabrowser>
       order deny,allow
       deny from all
       allow from all
       ProxyPass          http://localhost:23424/mediabrowser
       ProxyPassReverse   http://localhost:23424/mediabrowser
    </Location>

    <Location /cds>
       order deny,allow
       deny from all
       allow from all
       ProxyPass          http://localhost:23424/cds
       ProxyPassReverse   http://localhost:23424/cds
    </Location>
</VirtualHost>


I simply get an error from apache saying that access to / is forbidden.

Re: mediabrowser behind subdomain

PostPosted: Thu Oct 10, 2013 4:33 pm
by madeye
I stumbled upon the same problem. I have serviio running on a server on my LAN, and my normal apache is actually served from another server (also in the LAN).
Now I wanted it to be accessable from outside my LAN. After making the port forwarding, I made a virtual server with the ProxyPass statements below.

My virtual apache server is setup using the following:
  Code:
<VirtualHost 10.60.1.15:80>
 ServerName video.myhost.com

 ProxyPass /cds/ http://10.60.1.16:23424/cds/
 ProxyPassReverse /cds/ http://10.60.1.16:23424/cds/

 ProxyPass / http://10.60.1.16:23424/mediabrowser/
 ProxyPassReverse / http://10.60.1.16:23424/mediabrowser/
</VirtualHost>


Please note that 10.60.1.15 is my LAN apache server, and 10.60.1.16 is my LAN serviio server.

Hopefully this can help others looking for this kind of solution.

Re: mediabrowser behind subdomain

PostPosted: Thu Oct 10, 2013 4:53 pm
by zip
Wiki material?

Re: mediabrowser behind subdomain

PostPosted: Thu Oct 10, 2013 7:25 pm
by madeye
Sounds like a good idea.
I'm not really familiar with the wiki yet. Is there a specific section it should be added to?

Re: mediabrowser behind subdomain

PostPosted: Thu Oct 10, 2013 9:52 pm
by zip
I have added a section here: http://wiki.serviio.org/doku.php?id=mediabrowser

Just add a new document and link it on this page

Re: mediabrowser behind subdomain

PostPosted: Sat Oct 12, 2013 1:33 pm
by madeye
I have added a page to the wiki. As english is not my native tongue, it might be a good idea to check if everything sounds OK. ;)
http://wiki.serviio.org/doku.php?id=external_access_and_proxy_forward

Re: mediabrowser behind subdomain

PostPosted: Sat Oct 12, 2013 2:08 pm
by zip
Thank you