Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants