Created
April 6, 2019 13:33
-
-
Save alicek106/b958deb1937f51babf482a346d66511a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Ingress | |
metadata: | |
annotations: | |
nginx.ingress.kubernetes.io/server-snippet: | | |
set $flag 0; | |
if ($http_user_agent ~* "(Mobile)" ){ | |
set $flag = 1; | |
} | |
if ( $flag = 1 ){ | |
return 301 http://google.com; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment