From 7e0c561682271c2533f016a95e7a41c0588b8775 Mon Sep 17 00:00:00 2001 From: Jeffrey Forman Date: Tue, 25 Dec 2012 20:12:14 -0500 Subject: [PATCH] Add initial binder nginx config --- config/binder-nginx.conf.dist | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 config/binder-nginx.conf.dist diff --git a/config/binder-nginx.conf.dist b/config/binder-nginx.conf.dist new file mode 100644 index 0000000..e1f1414 --- /dev/null +++ b/config/binder-nginx.conf.dist @@ -0,0 +1,29 @@ +# +# binder$ ./manage.py runfcgi -v3 host=0.0.0.0 port= daemonize=FALSE debug=TRUE +# + +server { + listen 80; # This might be different depending on your Nginx setup + server_name ; + access_log /var/log/nginx/binder.access.log; + error_log /var/log/nginx/binder.error.log; + + location /static/ { + alias /binder/static/; + } + + location /static/admin/ { + alias /usr/share/pyshared/django/contrib/admin/static/admin/; + } + + location / { + fastcgi_pass 127.0.0.1:; + fastcgi_param REQUEST_METHOD $request_method; + fastcgi_param SERVER_NAME $server_name; + fastcgi_param SERVER_PORT $server_port; + fastcgi_param SERVER_PROTOCOL $server_protocol; + fastcgi_param PATH_INFO $fastcgi_script_name; + fastcgi_param CONTENT_TYPE $content_type; + fastcgi_param CONTENT_LENGTH $content_length; + } +}