From Red Crocodile, 6 Years ago, written in INI.
Embed
  1. location ~* ^/oauth.php {
  2.     error_page   404  =  @oauth;
  3. }
  4.    
  5. location @oauth {
  6.         include /etc/nginx/fastcgi_params;
  7.         fastcgi_pass настроенный_сокет;
  8.         fastcgi_param  SCRIPT_NAME  /oauth.php;
  9.         fastcgi_param  SCRIPT_FILENAME  $document_root/index.php;
  10.     }