ERROR: Invalid HTTP_HOST header: '/webapps/../gunicorn.sock'
问题 After I deployed my Django App last night I got tons of strange Emails saying: ERROR: Invalid HTTP_HOST header: '/webapps/example_com/run/gunicorn.sock I'm sure this is somehow related to the following nginx config: upstream example_app_server { server unix:/webapps/example_com/run/gunicorn.sock fail_timeout=0; } server { listen 80; server_name example.com; client_max_body_size 4G; access_log /webapps/example_com/logs/nginx-access.log; error_log /webapps/example_com/logs/nginx-error.log;