From: Jess Date: Fri, 29 Aug 2014 19:38:45 +0000 (+0200) Subject: add nginx conf file X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=fa6bb48dfa1080221d533b6c598c899f7bf2e2d7;p=mlpccg-meta.git add nginx conf file --- diff --git a/data/nginx.conf b/data/nginx.conf new file mode 100644 index 0000000..a97d019 --- /dev/null +++ b/data/nginx.conf @@ -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