2014-06-19 4 views
-1
내의 nginx 서버 내가

잘못된 요청 400 : Nginx의 건강 진단/상태

다른 상태가 계속에 히스 검사를하고

메신저, 그것은 단지 200를 반환해야하지만 400 잘못된 요청을 통해 유지 등 thefollowing

10.10.25.2 - [19/Jun/2014 : 13 : 55 : 06 +0400] "GET/상태/HTTP/1.0"200 0 "-" "-" "-" 10.10.25.3 - [19/Jun/2014 : 13 : 55 : 07 +0400] "GET/상태/HTTP/1.0"200 0 - ""- ""- " 10.10.25.2 - [19/Jun/2014 : 13 : 55 : 08 + 0400] "GET/status/HTTP/1.0"400 264 "-" "-" "-"GET/status/HT TP/1.0 "400 264"- ""- ""- "

오류 로그 :

client sent plain HTTP request to HTTPS port while reading client request headers 

여기 내 Nginx에 설정입니다! 내가 여기서 뭐라도 놓치고 있니?

worker_processes 1; 
error_log logs/error.log info; 
pid  logs/nginx.pid; 

events { 
    worker_connections 1024; 
} 

http { 
    include mime.types; 
    default_type text/html; 
    log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 
         '$status $body_bytes_sent "$http_referer" ' 
         '"$http_user_agent" "$http_x_forwarded_for"'; 

    access_log logs/access.log main; 
    sendfile  on; 
    keepalive_timeout 65; 
    server_tokens off; 
    add_header X-Frame-Options SAMEORIGIN; 
    add_header X-Content-Type-Options nosniff; 
    add_header X-XSS-Protection "1; mode=block"; 

    gzip on; 
    include /etc/nginx/conf.d/*.conf; 

server { 
     listen  80; 
     listen 443; 
     server_name localhost; 
     access_log logs/host.access.log main; 
     ssl     on; 
     ssl_certificate  /etc/nginx/conf/self-ssl.crt; 
     ssl_certificate_key /etc/nginx/conf/self-ssl.key; 
     ssl_session_timeout 5m; 
     ssl_protocols SSLv2 SSLv3 TLSv1; 
     ssl_ciphers HIGH:!aNULL:!MD5; 
     ssl_prefer_server_ciphers on; 

    } 

} 

답변

0

ssl on를 제거하고 listen 443ssl 수정을 추가합니다.

server { 
    listen 80; 
    listen 443 ssl; 
    server_name localhost; 
    access_log logs/host.access.log main; 
    ssl_certificate  /etc/nginx/conf/self-ssl.crt; 
    ... 
+0

여전히 몇 차례 동일한 오류가 발생합니다. 400 – LeoSam

+0

건강 검진은 어떻게합니까? –

+0

~ F5 GET/상태/return은 200 또는 301이어야합니다. – LeoSam