访问会以下载文件的方式将获取到的值保存在文件中

upstream docker_2 {
    server 10.17.172.244:8080;
}

server {
    listen 81;
    server_name localhost;

    access_log  /var/log/nginx/mytest_acc.log;
    error_log  /var/log/nginx/mytest_error.log;

    location ^~/ {
        if ($args ~* "(.*)sid=(\d+)(.*)$") {
            set $id $2;
        }
        echo $id;
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-08-09
  • 2021-07-05
猜你喜欢
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
相关资源
相似解决方案