Answer the question
In order to leave comments, you need to log in
Why is nginx passing socket path in domain name?
I have nginx configured to accept all incoming requests regardless of the domain name
listen 80 default_server;
listen [::]:80 default_server;
location / {
proxy_pass http://app_server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
charset utf-8;
}
Invalid HTTP_HOST header: '/path/to/wsgi.sock:'. The domain name provided is not valid according to RFC 1034/1035.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question