标签:ati code ret uber meta flag sni extension mob
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/server-snippet: |
set $agentflag 0;
if ($http_user_agent ~* "(Mobile)" ){
set $agentflag 1;
}
if ( $agentflag = 1 ) {
return 301 https://m.example.com;
}
nginx-ingress之server-snippet用法
标签:ati code ret uber meta flag sni extension mob
原文地址:https://www.cnblogs.com/uglyliu/p/11777457.html