【问题标题】:AWS Ealstic Beanstalk : Terminating HTTPS on EC2 Instances Running PHPAWS Elastic Beanstalk:在运行 PHP 的 EC2 实例上终止 HTTPS
【发布时间】:2017-03-31 21:22:51
【问题描述】:
【问题讨论】:
标签:
php
amazon-web-services
https
amazon-elastic-beanstalk
【解决方案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 文件位于健康检查的位置。
【解决方案2】:
我遇到了同样的问题,下面的帖子解决了健康警告。
/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