#
# Simple nginx HTTP server config
#
# nginx runs on Windows and *nix variants
#
# http://nginx.org/
#

http {
  server {
    listen      8080;
    server_name localhost;
    
    location / {
      root htdocs;
    }

    location /scgi {
      scgi_pass 127.0.0.1:8787;
      scgi_param  REQUEST_METHOD     $request_method;
      scgi_param  REQUEST_URI        $request_uri;
      scgi_param  QUERY_STRING       $query_string;
      scgi_param  CONTENT_TYPE       $content_type;

      scgi_param  DOCUMENT_URI       $document_uri;
      scgi_param  DOCUMENT_ROOT      $document_root;
      scgi_param  SCGI               1;
      scgi_param  SERVER_PROTOCOL    $server_protocol;

      scgi_param  REMOTE_ADDR        $remote_addr;
      scgi_param  REMOTE_PORT        $remote_port;
      scgi_param  SERVER_PORT        $server_port;
      scgi_param  SERVER_NAME        $server_name;
    }
  }
}  
