User Tools

Site Tools


external_access_and_proxy_forward

Access Serviio Media Browser from Internet on port 80

Only minimal instructions are listed here. If you have trouble understanding some part please use a search engine to search for additional information, or swing by the forum to ask your question.

Purpose

The purpose of this document is to enable the reader to setup proxy forwarding in apache from port 80 (standard http) to the designated port of the Serviio Media Browser.

Requirements

  • Serviio DLNA server
  • PRO Edition License
  • Apache with mod_proxy.so enabled
  • Access to make virtualhosts on the apache server

Port Forwarding

Port forwarding is Only necessary if you want to access the media browser from outside your LAN
As this is different on every router, only the principle is described here.

Whenever you want to give access from the Internet to any content on you LAN, you will need to setup this access on your router. Typically this is done in a section on the router called Virtual Server.
basically you need to tell the router that if it receives a request on port 80 (http), it should forward it to port 80 on your LAN apache server. For details please check the manual for your router.

Virtual Server

To enable users to access the media browser without the need to explicitly enter the port number (23424) in the web browser, it is necessary to use a proxy. In this case the apache webserver is used for this purpose, but other solutions exists.
When a host tries to access the server, it will be intercepted by the proxy. The proxy takes the connection request. Checks who the recipient is. Rewrites the original request and forwards it to the destination server. When the answer to the request is returned from the server, the proxy again checks it, and rewrites it before sending it back to the original host.
The host never even knew it was redirected.

Below is the code for a virtual server definition that will handle the requests for the media browser.

NameVirtualHost 10.0.1.16:80
<VirtualHost 10.0.1.16:80>                                                                                                                                                                                                                        
 ServerName video.server.com

 ProxyPass /cds/ http://10.0.1.16:23424/cds/
 ProxyPassReverse /cds/ http://10.0.1.16:23424/cds/

 ProxyPass / http://10.0.1.16:23424/mediabrowser/
 ProxyPassReverse / http://10.0.1.16:23424/mediabrowser/

</VirtualHost>

There are two definitions in the above code. One takes care of /cds/, which is the api used. The other is handling requests for the root (/) page. This one is actually forwarded to /mediabrowser/, so as not being forced to explicitly select the path to the mediabrowser.

you are now the happy owner of a forwarded Serviio Media Browser

external_access_and_proxy_forward.txt · Last modified: 2013/10/12 14:28 by madeye