To be more precise I need some functionalty to check request and pass it to some (formed manually) other url if it passes check procedure and if the check fails - return 404 back to client. Thank you. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,212741,212743#msg-212743