首页 > 其他 > 详细

知识库:NGINX 配置

时间:2021-08-02 11:01:20      阅读:18      评论:0      收藏:0      [点我收藏+]

关键词:nginx 直接返回json 

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

 

知识库:NGINX 配置

原文:https://www.cnblogs.com/95mz/p/15088460.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!