add nginx conf file
[mlpccg-meta.git] / data / nginx.conf
1 server {
2 listen 80;
3 server_name mlpccg-meta.yukkurigames.com;
4
5 access_log /var/log/nginx/mlpccg-meta.access.log;
6
7 location /static {
8 alias /home/jessicatz/mlpccg-meta/static;
9 }
10
11 location / {
12 # fastcgi_pass unix:RUNFILES_PATH/siteYY.socket;
13 fastcgi_pass 127.0.0.1:9000;
14 # for a TCP host/port:
15 # fastcgi_pass {hostname}:{port};
16
17 # necessary parameter
18 fastcgi_param PATH_INFO $fastcgi_script_name;
19
20 # to deal with POST requests
21 fastcgi_param REQUEST_METHOD $request_method;
22 fastcgi_param CONTENT_TYPE $content_type;
23 fastcgi_param CONTENT_LENGTH $content_length;
24
25 # http://stackoverflow.com/questions/605173/how-to-nginx-virtual-servers-fcgi-for-django uses many other parameters,
26 # some may be necessary in some situations
27 }
28 }