In my case problem was solved, as it was incorrect rewrite rule and the PHP script never received control, hence - 405. May I suggest that all who receive 405 responses first check whether rewrite rules are correctly configured. Andrejs Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2414,212003#msg-212003