关键词:nginx 直接返回json 

location /json/ {
        default_type application/json;
        add_header Content-Type 'text/html; charset=utf-8';
        return 200 '{"code":"6666,"msg":"访问高峰期..."}';
        }

 

相关文章:

  • 2021-06-05
  • 2021-06-06
  • 2021-08-24
  • 2021-09-12
  • 2021-09-08
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-03
  • 2021-08-19
  • 2022-12-23
  • 2021-11-30
  • 2021-05-30
  • 2022-12-23
相关资源
相似解决方案