2016-11-17 128 views
3

我想在我的單個實例EBS環境中允許https連接。AWS Ealstic Beanstalk:在運行PHP的EC2實例上終止HTTPS

我跟着步驟從下面的鏈接

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-singleinstance-php.html

,但以下這些步驟,並在部署包後,我的實例健康改爲降級

當我檢查,我發現一條消息出現的原因

以下服務未運行:代理服務器。

這裏是截圖

enter image description here

如果任何人有想法,那麼請讓我知道如何解決這個問題,使我的實例以https

回答

1

檢查您/opt/elasticbeanstalk/hooks/appdeploy/post/01_monitor_httpd_pid.sh運行。請注意,01_monitor_httpd_pid.sh可能對您有不同的名稱。

在那裏,你需要的,如果你不使用apache/httpd更改代理檢查nginx,像這樣:

#!/bin/bash 
set -xe 
/opt/elasticbeanstalk/bin/healthd-track-pidfile --proxy nginx 

如果使用apache/httpd,這意味着有什麼問題你的apache運行時實例或過程。確保pid文件是健康檢查應該在的位置。

0

我遇到了同樣的問題,下面的帖子腳本解決了健康警告。

/opt/elasticbeanstalk/hooks/appdeploy/post/01_monitor_httpd_pid.sh

#!/bin/bash 
set -xe 

chmod 0755 /var/run/httpd 
/opt/elasticbeanstalk/bin/healthd-track-pidfile --proxy httpd