Jump to content

Nginx, Rewrite module not working for emby


Recommended Posts

amateurgod
Posted

Hey everyone so i have an Nginx reverse proxy + Firewall set up so that the only external access to my emby server is via

https://mysubdomain.mydomain.co.uk

 however this defaults to 

https://mysubdomain.mydomain.co.uk/web/index.html#!/*

(With the * representing whatever page im on i.e home etc) i have tried to use Nginxs rewrite module to try to remove the /web/index.html#! part of the domain as i just want it to look neat and tidy. so i have this at the start of my location / block for the emby server block 

rewrite ^/web/index.html#!/(.*)$ /$1 permanent;

However the /web/index.html#! still remains part of the domain even after clearing the cache.

The rewrite module works for all the other domains and subdomains i have on the server, just not for emby.

does anyone have any experience on how i can successfully do this?

Posted

Hi, we're using a technique called hash bangs. I'm not sure this is going to work with url rewriting. 

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