1. 程式人生 > >034_nginx報錯總結

034_nginx報錯總結

一、nginx: [emerg] "client_header_timeout" directive is not allowed here in /opt/nginx/conf/vhost.d/newton-api.uuwatch.com.conf:24

location  / {    
    client_body_timeout 5s;
    client_header_timeout 3s;    #配置引數報錯
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_http_version 1.1;
    proxy_set_header Connection "";
    proxy_set_header Host newton-api.ele.me;
    add_header 'Access-Control-Allow-Origin' '*';
}  

二、