mr valery, proxy_redirect off helps to turn off 405 but now it is showing 403 forbidden. thanks for the reply Posted at Nginx Forum: http://forum.nginx.org/read.php?2,186553,186610#msg-186610