If you have recently setup an Amazon EC2 instance and would like to configure access to Port 443 (HTTPS:// traffic) on your new instance, there are a few things you should do.
First Step – Allow Port 443 in your Security Group
Firstly, you need to tell your EC2 instance that it is allowed to accept traffic via port 443 (and port 80 if you wish to allow ordinary web traffic to get through).
Go to your Amazon EC2 admin panel, and note which Security Group your EC2 instance is in (say, “Quicklaunch-1”).
Go to the “Security Groups” screen and click on the Quicklaunch-1 security group. At the bottom, you’ll see options. Under “Inbound” select “Create a New Rule” and select the port you wish to open (i.e. HTTPS) and press “Add Rule” and don’t forget to press “Apply Rule Changes” when you’re done.
Next Step – Install Mod_SSL
Allowing traffic is one thing, but your server needs to know what to do with this traffic. You need to install an apache webserver and install mod_SSL and turn it on. Run the following command:
yum install httpd mod_ssl -y
Then restart (or start) your web server with the following command:
service httpd restart
Any weird problems, leave a comment below and I might be able to assist.
This is the sort of thing we do on behalf of our clients at Silicon Dales – if you’d like us to sort out your web applications or business web presence, then please feel free to contact us today.