fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.26k stars 618 forks source link

Mobile Traffic Redirection (User Agent) #609

Open chudamanisanju opened 5 years ago

chudamanisanju commented 5 years ago

I want to redirect mobile device traffic to another domain. For example www.example.com to m.example.com Is this possible with Fabio?

aaronhurt commented 5 years ago

As in you want Fabio to read user agent strings and only redirect mobile devices? That’s not currently a feature we support.

aaronhurt commented 5 years ago

There is a library that I have used in other applications that could make this possible as qualifiers to the http-redirect statement: https://github.com/mssola/user_agent

kuskmen commented 4 years ago

@leprechau could you assist on this one, I would like to jump in for my first contribution :)

aaronhurt commented 4 years ago

@kuskmen I'd be happy to provide assistance. What exactly are you looking for?

kuskmen commented 4 years ago

@leprechau , thanks, well, perhaps where other redirections are implemented in the project would be a good start, if any. If not, maybe a good place to start, also are we saying that it is okay if I use the library you provided above?