Norman,

Am 27.08.2018 um 23:45 schrieb Norman Branitsky:
> I need to rewrite my URLs according to the following pattern:
> cloud.example.com/<application>?query
> becomes:
> <application>.cloud.example.com/main?query
> 
> HAProxy will terminate SSL - I have a wildcard certificate for 
> *.cloud.example.com.
> As the target servers are running Docker Enterprise, I do not need DNS 
> entries for
> every possible instance of <application> as Docker EE will handle this 
> internally.
> Is there a way to do this?
> 

What exactly do you mean by rewrite? Do you want that when a user requests

https://cloud.example.com/<application>?query

in their web browser it gets proxied to a backend running at

https://<application>.cloud.example.com/main?query

? Is it possible that there follows a path that you need to preserve:

https://cloud.example.com/<application>/<path>/<file>?query
to
https://<application>.cloud.example.com/main/<path>/<file>?query

?

Best regards
Tim Düsterhus

Reply via email to