attempting to take advice from nginx creator http://forum.nginx.org/read.php?2,1612,1627#msg-1627