server { listen 8001; server_name localhost; client_max_body_size 1M; # serve media files location /static/ { alias /ucast/static/; } location /internal_files/ { internal; alias /ucast/data/; } location / { proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:8000; } # location /errors/ { # alias /etc/nginx/conf.d/errorpages/; # internal; # } }