Jump to content

Running MBS over reverse proxy


steve1977

Recommended Posts

steve1977

Had opened another thread (http://mediabrowser.tv/community/index.php?/topic/1238-running-mbs-over-reverse-proxy/), but think it better fits here as a "feature request".

 

Would love to run MBS on port 80 alongside the other things (sabnzbd, sb, cp, hp, etc) via a reverse proxy in Apache.

 

I assume this should be very easy to implement by setting a "path". No idea how to code it, but hope to be easy to just "borrow" the code from sb, cp, hp or others.

 

Thanks in advance for considering!!!

Link to comment
Share on other sites

  • 1 year later...
insename
 

I just read through this thread. 

Sry to bump this but I see the problem with the setup in the past post right away. 

Reverse proxies are not meant to pass a directory along with the host and port and also must end with a /.

 
ProxyPass http://htpc:8096/
ProxyPassReverse http://htpc:8096/

Then access the apache server with a trailing /mediabrowser/ .

 

That should get you up and running. 

Now is it possible to get clients to support access to mediabrowser via SSL?

 
Link to comment
Share on other sites

insename

This does not involve mediabrowser. It will serve the data the same way it did before, but instead of to a client, to an apache server.

Link to comment
Share on other sites

  • 2 weeks later...

Would love to run MBS on port 80 alongside the other things (sabnzbd, sb, cp, hp, etc) via a reverse proxy in Apache.

 

 

This can easily be accomplished with nginx.

 

In the server section of the sites config put this in. (ex: yourwebsite.com.conf)

 

location /mediabrowser {

        proxy_set_header Host $host;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_pass http://localhost:8096;

 

That should do it for you.

 

Nginx is less on cpu and ram than apache. depends on your what MB server has in it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...