Closed dtenenba closed 2 years ago
Hi, yes it is possible :)
You need to use the label: easyhaproxy.redirect.[definition]
and set:
domain1--redirect1,domain2--redirect2
For the example you set, redirect http://foo.com to https://foo.com you should add the following labels:
I am closing this issue :)
This is now done differently right?
Yes, with the new version the redirect becomes a JSON:
easyhaproxy.example.redirect='{"foo.com":"https://foo.com"}'
Hi, this is not an issue but a question -
If a request comes in for a host (say foo.com) on port 80 I want to redirect it to port 443, so I want to redirect
http://foo.com to https://foo.com
How can I do this with easy-haproxy? I will be using a stack and so setting up my labels in my yml file. Thanks for this nice tool!