From 88fba9d54b45f22ab87f3bde3d05f709496ff3db Mon Sep 17 00:00:00 2001 From: jeremy_c Date: Mon, 4 Oct 2010 16:32:47 +0000 Subject: [PATCH] Added nginx example config file as nginx works well on Windows as well as *nix systems git-svn-id: svn://ultimatepp.org/upp/trunk@2742 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- reference/ScgiHello/ScgiHello.upp | 1 + reference/ScgiHello/nginx.conf | 36 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 reference/ScgiHello/nginx.conf diff --git a/reference/ScgiHello/ScgiHello.upp b/reference/ScgiHello/ScgiHello.upp index 5118d6c83..695f710ba 100644 --- a/reference/ScgiHello/ScgiHello.upp +++ b/reference/ScgiHello/ScgiHello.upp @@ -5,6 +5,7 @@ uses ScgiServer; file + nginx.conf, htdocs/index.html, lighttpd.conf, ScgiHello.cpp; diff --git a/reference/ScgiHello/nginx.conf b/reference/ScgiHello/nginx.conf new file mode 100644 index 000000000..70549e84b --- /dev/null +++ b/reference/ScgiHello/nginx.conf @@ -0,0 +1,36 @@ +# +# 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; + } + } +}