2
반환HAProxy 상태 검사가 작동하지 않습니다하지만 CURL 나는 다음과 같은 백엔드로 구성된 HAProxy 건강 검진이 200 OK
backend php_servers
http-request set-header X-Forwarded-Port %[dst_port]
option httpchk get /health
http-check expect status 200
server php1 internal_ip:80 check
HAProxy 서버를 사용하지 않고 CURL을 사용할 때는 200 OK 응답을받을 수 있습니다.
Command: curl -I internal_ip/health
Response:
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 01 Dec 2016 20:53:48 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Access-Control-Allow-Origin: api.flex-appeal.nl
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-transform
왜 HAProxy는 서버를 "UP"으로 인식하지 않습니까? 내가 잘 연결할 수있는 것 같아.