server { listen 80 default_server; server_name _; location /static/upload { expires max; alias /home/upload; } location /static { etag off; expires max; alias /home/OnlineJudge/static/release; } location / { client_max_body_size 100m; proxy_pass http://oj_web_server:8080; proxy_set_header Host $host; } }