server { listen 443 ssl http2; listen [::]:443 ssl http2; root /var/www/josh; error_page 404 /static/error/404.html; location = /static/error/404.html {} location / { return 404; } }