You have the wrong path for proxy_params99% of the time (in my experience), the default location for the file proxy_params /etc/nginx/proxy_params, but for you it doesnβt look like ..
The file proxy_paramscontains the following:
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_set_header X-Forwarded-Proto $scheme;
, , Centos, proxy_params. , , ,
location / {
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_set_header X-Forwarded-Proto $scheme;
proxy_pass http://unix:/home/sammy/myproject/myproject.sock;
}
, . , :
include /path/to/proxy_params
else ( )
/etc/nginx ( )