server { listen 80; server_name mlpccg-meta.yukkurigames.com; access_log /var/log/nginx/mlpccg-meta.access.log; location /favicon.ico { alias /home/jessicatz/mlpccg-meta/static/favicon.ico; } 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}; fastcgi_split_path_info ^()(.*)$; # 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 include fastcgi_params; } }