add nginx conf file
authorJess <jessicatz.fairymeadow@gmail.com>
Fri, 29 Aug 2014 19:38:45 +0000 (21:38 +0200)
committerJess <jessicatz.fairymeadow@gmail.com>
Fri, 29 Aug 2014 19:38:45 +0000 (21:38 +0200)
data/nginx.conf [new file with mode: 0644]

diff --git a/data/nginx.conf b/data/nginx.conf
new file mode 100644 (file)
index 0000000..a97d019
--- /dev/null
@@ -0,0 +1,28 @@
+server {
+    listen   80;
+    server_name  mlpccg-meta.yukkurigames.com;
+    access_log  /var/log/nginx/mlpccg-meta.access.log;
+    location /static {
+        alias   /home/jessicatz/mlpccg-meta/static;
+    }
+    location / {
+        # fastcgi_pass unix:RUNFILES_PATH/siteYY.socket;
+        fastcgi_pass 127.0.0.1:9000;
+        # for a TCP host/port:
+        # fastcgi_pass   {hostname}:{port};
+        # necessary parameter
+        fastcgi_param PATH_INFO $fastcgi_script_name;
+        # to deal with POST requests
+        fastcgi_param REQUEST_METHOD $request_method;
+        fastcgi_param CONTENT_TYPE $content_type;
+        fastcgi_param CONTENT_LENGTH $content_length;
+        # http://stackoverflow.com/questions/605173/how-to-nginx-virtual-servers-fcgi-for-django uses many other parameters, 
+        # some may be necessary in some situations
+    }
+}
\ No newline at end of file