52771a15f9e3c3aa974594a79b5e7cbad517a305
[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 fastcgi_split_path_info ^()(.*)$;
17
18 # necessary parameter
19 fastcgi_param PATH_INFO $fastcgi_script_name;
20
21 # to deal with POST requests
22 fastcgi_param REQUEST_METHOD $request_method;
23 fastcgi_param CONTENT_TYPE $content_type;
24 fastcgi_param CONTENT_LENGTH $content_length;
25
26 # http://stackoverflow.com/questions/605173/how-to-nginx-virtual-servers-fcgi-for-django uses many other parameters,
27 # some may be necessary in some situations
28
29 include fastcgi_params;
30 }
31 }