Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Multi app in single domain #635

Open
wablo opened this issue Apr 16, 2019 · 1 comment
Open

Multi app in single domain #635

wablo opened this issue Apr 16, 2019 · 1 comment

Comments

@wablo
Copy link

wablo commented Apr 16, 2019

Hi all
marathon-lb support many path in a single dns?
i have a single dns mydns.com, i try to configure marathon-lb for this configuration mydns.com/app1 redirect the traffic to a specific service, and another configuration mydns,com/app2 to another service.
which labes HAPROXY have to set in my json file?
thanks in advance

@andreaspeters
Copy link
Contributor

You have to set these labels:

HAPROXY_0_PATH = <your uri path>
HAPROXY_0_VHOST=<your domain>

PATH can also include regex. As example:

HAPROXY_0_PATH=^/api1/funx/(v2_alpha|r0)/sync$ 

But then you have to add also these label:

HAPROXY_0_HTTPS_FRONTEND_ACL_ONLY_WITH_PATH= acl path_{backend} path_reg {path} 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants