Pointing A Subdomain From Route53 To CENTOS Droplet Displaying Error : This site can’t be reached The connection was reset

Posted September 28, 2018 1.7k views

Am trying to point a subdomain from Route53 to a Droplet I created. I keep getting, The Site Cannot be reached the connection was reset error.

Below is my setup

I have a virtual host setup on my centOS droplet like this:

<VirtualHost *:80>

DocumentRoot /var/www/html/platform/public

<Directory /var/www/html/platform/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
DirectoryIndex index.php

#ErrorLog /var/www/html/platform/error.log
LogLevel warn
#CustomLog /var/www/html/platform/access.log combined
RewriteEngine on
RewriteCond %{SERVERNAME}
RewriteRule ^ https://%{SERVER
NAME}%{REQUEST_URI} [END,NE,R=permanent]

As for my /etc/hosts file, I have the following content: corpreneur corpreneur localhost.localdomain localhost localhost4.localdomain4 localhost4

On AWS Route53 I created A Record with the below Detail

Name: savings

And On My Droplet I have below

Record Hostname Value

When I check the NS record, it shows DigitalOcean NS record

When I Also Check the A record
It shows the IP of the droplet

So could it be an issue with SELinux and not my setup?

I expect this to work but it doesn’t, am confused about this, what am I doing wrong. I need help on this. Thanks!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers


You have a redirect to HTTPS in your port 80 vhost. But you’re missing the SSL vhost (for port 443). So Apache isn’t listening on that port at all. Hence the connection reset error:

$ curl -I
HTTP/1.1 301 Moved Permanently
Date: Fri, 28 Sep 2018 19:15:13 GMT
Server: Apache/2.4.6 (CentOS)
Content-Type: text/html; charset=iso-8859-1

$ curl -vvv

  • Trying…
  • connect to port 443 failed: Connection refused
  • Failed to connect to port 443: Connection refused
  • Closing connection 0

Thanks very much, I just needed to install cert-bot. Everything was taken care of with cert-bot auto.

Am grateful