AWSでSSLを設定しています。
割り振り先のサーバーの1080Portで受取後、Nginx経由で8088Portへ変換しています。
8080Portで起動しているJenkinsへ割り当てをしているのですが、実際にWebからアクセスすると
502 BadGatewayのエラーになります。
Jenkinsのエラーログ(/var/log/nginx/jenkins.error.log)
log
12017/12/06 22:52:06 [error] 11147#0: *3 SSL_do_handshake() failed (SSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol) while SSL handshaking to upstream, client: 10.0.22.182, server: xxx.yyy.com, request: "GET /robots.txt HTTP/1.1", upstream: "https://127.0.0.1:8088/robots.txt", host: "xxx.yyy.com"
nginxの設定(該当のディレクティブのみ抜粋)(/etc/nginx/nginx.conf)
conf
1 upstream jenkins { 2 server 127.0.0.1:8088; 3 keepalive 16; # <=== 追加 4 } 5 6 # アプリケーションリダイレクト用 7 server { 8 listen 1080; 9 server_name xxx.yyy.com 10 access_log /var/log/nginx/jenkins.access.log; 11 error_log /var/log/nginx/jenkins.error.log; 12 13 location / { 14 # proxy_set_header X-Real-IP $remote_addr; 15 # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 16 # proxy_set_header Host $http_host; 17 proxy_pass https://jenkins; 18 } 19 }
Jenkinsの設定(/etc/sysconfig/jenkins)
JENKINS_PORT="8088"
何か原因・手探りになる事項ございますでしょうか?
どうぞ、よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー