Nginx根据不同ip段配置不同的访问首页
nginx配置 http {geo $client_ip_class {192.168.243.0/24 1;192.165.238.0/24 2;# 可以根据需要添加更多的IP段}map $client_ip_class $root_path {1 /home/zhqx/ipsegment/web1/dist;2 /home/zhqx/ipsegment/web2/dist;}server {listen 9090;server_name example.com;locati…
2025-06-28