From a50e81a087fc55afcfd75d03bbb1a2a28eef72cd Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 22 Apr 2011 07:03:55 +0000 Subject: updated static fallthrough system --- doc/nginx.conf | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/nginx.conf (limited to 'doc') diff --git a/doc/nginx.conf b/doc/nginx.conf new file mode 100644 index 0000000..e2e4e3c --- /dev/null +++ b/doc/nginx.conf @@ -0,0 +1,29 @@ +server { + listen 80; + listen [::]:80; + server_name piccast.memeschemes.com; + + access_log /var/log/nginx/access.log; + + location / { + # Fallthrough to django if file not found + fastcgi_param PATH_INFO $fastcgi_script_name; + fastcgi_param REQUEST_METHOD $request_method; + fastcgi_param QUERY_STRING $query_string; + fastcgi_param SERVER_NAME $server_name; + fastcgi_param SERVER_PORT $server_port; + fastcgi_param SERVER_PROTOCOL $server_protocol; + fastcgi_param CONTENT_TYPE $content_type; + fastcgi_param CONTENT_LENGTH $content_length; + fastcgi_pass_header Authorization; + fastcgi_intercept_errors off; + if (!-f $request_filename) { + fastcgi_pass unix:/srv/http/piccast.memeschemes.com/django.sock; + break; + } + + root /srv/http/piccast.memeschemes.com/www; + index index.html index.htm; + } +} + -- cgit v1.2.3