server_name rpi.narnian.us; #location / { try_files $uri @rpiWebApp; } location /static/ { alias /usb/www/matthew/rpiWebApp/static/; } location / { include fastcgi_params; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_NAME ""; fastcgi_pass unix:/run/rpiWebApp/fcgi.sock; } location /games/download { proxy_pass http://127.0.0.1:8080; proxy_request_buffering off; proxy_buffering off; proxy_http_version 1.1; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }