Loading

nginx禁用api接口,并提示

提示json的输出

location / {
            default_type application/json;
            return 200 '{"code":1001,"message":"服务器升级中","data":""}';
        }

提示文本的输出

location / {
            default_type text/html;
            return 200 '哈哈哈哈';
        }

 

posted @ 2018-06-05 15:37  崔某一  阅读(637)  评论(0编辑  收藏  举报