FAQ  •  Register  •  Login

mediabrowser behind subdomain

<<

pointer2null

Streaming enthusiast

Posts: 25

Joined: Sat Jan 26, 2013 7:38 pm

Post Mon Mar 25, 2013 6:41 pm

mediabrowser behind subdomain

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?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Mar 25, 2013 7:29 pm

Re: mediabrowser behind subdomain

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)
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

pointer2null

Streaming enthusiast

Posts: 25

Joined: Sat Jan 26, 2013 7:38 pm

Post Sun Mar 31, 2013 10:13 am

Re: mediabrowser behind subdomain

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.
<<

madeye

User avatar

Serviio newbie

Posts: 3

Joined: Wed Oct 09, 2013 8:25 pm

Location: Aabenraa, Denmark

Post Thu Oct 10, 2013 4:33 pm

Re: mediabrowser behind subdomain

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.
- Madeye
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Oct 10, 2013 4:53 pm

Re: mediabrowser behind subdomain

Wiki material?
<<

madeye

User avatar

Serviio newbie

Posts: 3

Joined: Wed Oct 09, 2013 8:25 pm

Location: Aabenraa, Denmark

Post Thu Oct 10, 2013 7:25 pm

Re: mediabrowser behind subdomain

Sounds like a good idea.
I'm not really familiar with the wiki yet. Is there a specific section it should be added to?
- Madeye
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Oct 10, 2013 9:52 pm

Re: mediabrowser behind subdomain

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
<<

madeye

User avatar

Serviio newbie

Posts: 3

Joined: Wed Oct 09, 2013 8:25 pm

Location: Aabenraa, Denmark

Post Sat Oct 12, 2013 1:33 pm

Re: mediabrowser behind subdomain

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
- Madeye
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Oct 12, 2013 2:08 pm

Re: mediabrowser behind subdomain

Thank you

Return to General discussion

Who is online

Users browsing this forum: No registered users and 23 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.