OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • HAProxy - map files and directory selection
« previous next »
  • Print
Pages: [1]

Author Topic: HAProxy - map files and directory selection  (Read 1440 times)

zwck

  • Newbie
  • *
  • Posts: 14
  • Karma: 1
    • View Profile
HAProxy - map files and directory selection
« on: February 07, 2020, 02:17:32 pm »
Hey Frankie :D

As far as i can determine the backend selection currently functions with
Code: [Select]
use_backend %[req.hdr(host),lower,map_dom(/tmp/haproxy/mapfiles/mapfile.txt,bk_defaultbackend)] 
with a mapfile.txt containing something like this:

Code: [Select]
sub.domain.tld bk_subdomain
when navigating to sub.domain.tld the properbackend will be selected. however i would like to be able to forward directories e.g
Code: [Select]
sub.domain.tld/dir bk_subdomaindirwhich does not work with map.dom in the usebackend code. How would i go about this ?
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • HAProxy - map files and directory selection
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2