这段代码干什么用的呀?

查看 21|回复 1
作者:golden021   
如下
[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]复制代码

    这段, 代码

  • 爱说说   
    没啥用的。可以删了。。
    您需要登录后才可以回帖 登录 | 立即注册

    返回顶部