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

HAproxy: how to use backend with specific path+port?

Scheduled Pinned Locked Moved HA/CARP/VIPs
2 Posts 1 Posters 873 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.
  • M
    MarvinFS
    last edited by Dec 1, 2021, 3:33 PM

    Dear colleagues,

    Could you please help me, I know the basics: like how to use different certificates with a single front end and different backends with single front end, but I'm stuck with that task:

    back ends:
    admin 192.168.0.6 port 7071
    webapp 192.168.0.6 port 7443

    frontend: xxx.xxx.xxx.xxx:443 (public IP)

    redirect to backend "admin: if expression: Path contains admin
    redirect to backend "webapp" if expression: host matches mail.mydomain.com

    So webapp backend which is email web UI, works fine from outside but not admin backend, when I'm trying to access https://mail.mydomain.com/admin
    as it strictly requires to be redirected to https://192.168.0.6:7071/ZimbraAdmin/ to be operational
    and I can't figure how to specify path AND port number transparently to a client for a backend

    I reckon there should be used something like https-request set uri or set path actions in conditions but I can't figure the correct parameters and how to specify it properly- could somebody help me please?

    M 1 Reply Last reply Dec 1, 2021, 4:51 PM Reply Quote 0
    • M
      MarvinFS @MarvinFS
      last edited by Dec 1, 2021, 4:51 PM

      I managed to get redirects working but it redirects to private service address which is obviously not accessible from outside

      mbamtray_2021-12-01_21-50-12.png

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received