Setup: php5-fpm listening on socket + nginx 1.2.6 Wanted to use mod_auth_request for www authentication. Works fine for GET requests, POST requests time out with error 504. Error log: 2013/02/24 00:13:03 24004#0: *13 auth request unexpected status: 504 while sending to client, client: 80.187.106.XXX, server: xxx.net, request: "POST /test.php HTTP/1.1", host: "xxx.net",by refghbn - Nginx Mailing List - English