updated for Nginx 1.4.0