AWS Ealstic Beanstalk:在运行PHP的EC2实例上终止HTTPS [英] AWS Ealstic Beanstalk : Terminating HTTPS on EC2 Instances Running PHP

查看:181
本文介绍了AWS Ealstic Beanstalk:在运行PHP的EC2实例上终止HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的单个实例EBS环境中允许https连接。



我按照下面的步骤链接





如果有人有想法,请告诉我如何解决此问题并使我的实例运行HTTPS

解决方案

签入 /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文件是健康检查的位置。


I want to allow https connections on my single instance EBS enviornment.

I followed steps from below link

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

but after following these steps and deploying package, my instance health changed to Degraded

When I checked the cause I found a message there

Following services are not running: proxy.

here is the screenshot

if anyone has idea then please let me know how to resolve this problem and make my instance running with https

解决方案

Check in your /opt/elasticbeanstalk/hooks/appdeploy/post/01_monitor_httpd_pid.sh. Note that 01_monitor_httpd_pid.sh might have a different name for you.

In there you need to change your proxy check if you're not using apache/httpd to nginx, like so:

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

If you are using apache/httpd, it means that there's something wrong with your apache runtime instance or process. Make sure the pid file is where is should be for the health check.

这篇关于AWS Ealstic Beanstalk:在运行PHP的EC2实例上终止HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆