Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    HAproxy conditional URL rewrite

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 2.0k 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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
      Privacy Policy · Cookie Policy