location ~* ^/oauth.php { error_page 404 = @oauth; } location @oauth { include /etc/nginx/fastcgi_params; fastcgi_pass настроенный_сокет; fastcgi_param SCRIPT_NAME /oauth.php; fastcgi_param SCRIPT_FILENAME $document_root/index.php; }