Issues trying to configure SSL on AWS Elastic Beanstalk Webserver (single instance) PHP

Question:

I am in the process of migrating a website for a client to AWS. I have everything configured and working except that the client would like to be able to accept payments on there website. I followed several guides on how to get SSL working using elastic beanstalk. Currently I have it set up to use a source bundle and I created a config file in the .ebextensions file that looks like this:

where sourceHere is the link to the file in S3, I have also tried using content directly in place of source but the result is the same, the application launches without any errors but any attempts to connect to the IP address or provided URL just say that the page is unavailable. If i build the same zip file but leave out the config files it builds correctly. This is pretty much exactly what AWS has on there support page and in the documentation for Elastic Beanstalk so I am not sure what is happening.

Answer:

There is a problem of indentation in your config file: /etc/pki/tls/certs/server.crt and /etc/pki/tls/certs/server.key should be at the same level as /etc/httpd/conf.d/ssl.conf.

You should correct the indentation so you get:

Leave a Reply