Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HAproxy conditional URL rewrite

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • keyserK
      keyser Rebel Alliance
      last edited by

      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

      Love the no fuss of using the official appliances :-)

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.