如下 [ol]location / { proxy_set_header X-Forwarded-For $actual_client_ip; if ($ip_check = 1) { rewrite ^/(.*)$ /.1234/$1 last; }}location ~ ^/\.1234/.*$ { if ($request_uri ~ ^/(|index\.htm)$) { rewrite ^ /index.html last; } rewrite ^/\.1234(.*)$ $1 break;}location = /index.html { root /www/wwwroot/www.xxx.com;}[/ol]复制代码 这段, 代码