server { # the port your site will be served on listen80; # the domain name it will serve for server_name IP OR DOMAIN; # substitute your machine's IP address or FQDN charset utf-8;
# max upload size client_max_body_size75M; # adjust to taste
# Django media location /media { alias /home/chen/my_app/media; # your Django project's media files - amend as required }
location /static { alias /home/chen/my_app/static; # your Django project's static files - amend as required }
# Finally, send all non-media requests to the Django server. location / { uwsgi_pass IP OR DOMAIN:8001; include /home/chen/my_app/uwsgi_params; # the uwsgi_params file you installed } }