HAproxy conditional URL rewrite
-
Hi
I'm trying to get my PLEX server to work for native plex clients through a HAproxy HTTPS Reverse proxy.
Using the Webinterface works perfectly so it's specifically the native Clients that does not.I have conversed with fellow PLEX users about getting this done, and it seems a conditional URL rewrite will solve the issue.
Specifically i'm looking for requests for a exact path (/) that does not contain a specific URL parameter (X-Plex-Token). If such a request is made i wish to rewrite the URL fetched from the backend to /web/index.html.
How would I go about looking for this specific request in an ACL, and how would I do the rewrite in the Actions on that ACL?
You can read about the details in this thread: http://forums.plex.tv/discussion/comment/1354367#Comment_1354367
-Keyser