ngx_http_map_module Module ngx_http_map_module (nginx.org)
map $http_host $name { hostnames; default 0; ~map\.intrinsic.\w+ 1; *.canto.com 2; aa.intrinsic.io 3; bb.intrinsic.* 4; } map $http_user_agent $mobile { default 0; ~*Chrome 1; } server { listen 80; listen [::]:80; server_name vend.intrinsic.io *.intrinsic.io; root /usr/share/Nginx/html; error_log /var/log/Nginx/error.log debug; rewrite_log on; location / { return 202 $name:$mobile\n; } error_page 404 /404.html; location = /404.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。