Tag Archives: chef

How to make nginx return 404 with json response

Problem I need the the nginx to return a json response instead of the default static html page “nginx is not available temporarily.blabla..” if the content-tyhpe is “application/json” in my case, nginx is used as a web app as well … Continue reading

Posted in devops | Tagged , | Leave a comment

aws autoscaling policy of memory by cloudformation

Problem Need to add autoscaling policy for ec2 instances memory usage. but the problem is : there is no metric of memory in cloudwatch. So the first issue is to add such a memory metric. fortunately, aws website distribute some … Continue reading

Posted in devops | Tagged , | Leave a comment