MENU

nginx 返回 json

June 13, 2018 • Read: 1015 • Nginx阅读设置

json

location /json {
       default_type application/json;
 return 200 '{"date":"$time_local","status":"success","result":"nginx json"}';
}

兼总条贯 知至知终