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

    HAproxy - sub directory not being redirected.

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 2 Posters 340 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.
    • W
      wontbeherelong
      last edited by wontbeherelong

      Hi,

      Anyone able to tell me what I'm doing wrong here? Most of my services are run on sub domains and work perfectly, However, for SSO to work I need Plex to be a sub directory. My dashboard service (Organizr) is at mydomain.com, and for plex I have told it to point to mydomain.com/plex. So, the relevant part of my config currently looks something like this:

      frontend shared-frontend-merged
      	acl			ACL1	var(txn.txnhost) -m str -i mydomain.co.uk
      	acl			ACLPlex	var(txn.txnpath) -m beg -i /plex
      
      use_backend Organizr_ipvANY  if  ACL1 
      	use_backend Plex_ipvANY  if  ACLPlex 
      

      Yet when I try to access Plex through Organizr I'm faced with a 404 served up by nginx. Have I missed something obvious?

      P 1 Reply Last reply Reply Quote 0
      • P
        PiBa @wontbeherelong
        last edited by

        @wontbeherelong
        Does it work when accessed outside of haproxy directly on your lan network? 'http://<IP-of-your-plex-server>/plex/'

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