左右不逢缘 发表于 2025-7-7 23:28:36

这段代码干什么用的呀?

如下

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;}

独家记忆 发表于 2025-7-7 23:29:22

没啥用的。可以删了。。

IT618发布 发表于 2025-7-7 23:30:01

可以删了。。

浅生 发表于 2025-7-7 23:30:56

可以问问ai
页: [1]
查看完整版本: 这段代码干什么用的呀?