Open eric-wieser opened 7 years ago
Until then, I'll put it here:
server { listen unix:/societies/gcsu/public_html/room-picks/.apache.sock; server_name roompicks.caiusjcr.co.uk; client_max_body_size 100M; location / { try_files /dev/null @backend; } location @backend { proxy_pass http://unix:/home/efw27/projects/room-picks/nginx.sock; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /static/ { root /home/efw27/projects/room-picks; } location /photos/ { root /home/efw27/projects/room-picks/uploaded_files; try_files $uri.jpg $uri.png $uri.gif @backend; expires 1y; access_log off; add_header Cache-Control "public"; } }
Not necessary, but makes it perform better.
Until then, I'll put it here:
Not necessary, but makes it perform better.