I have one EC2 instance running with an Elastic IP of 54.82.145.116
. My vhost.conf
file looks like this:
<VirtualHost *:80>
ServerName default:80
DocumentRoot /var/www/html/brentrichison.com
ServerAdmin [email protected]
ErrorLog /var/www/html/logs/error.log
</VirtualHost>
<VirtualHost *:80>
ServerName brentrichison.com
DocumentRoot /var/www/html/brentrichison.com
</VirtualHost>
<VirtualHost *:80>
ServerName greyspace.io
DocumentRoot /var/www/html/greyspace.io
</VirtualHost>
<VirtualHost *:80>
ServerName tlsbaseball.com
DocumentRoot /var/www/html/tlsbaseball.com
</VirtualHost>
<VirtualHost *:80>
ServerName tm.brentrichison.com
DocumentRoot /var/www/html/tm
</VirtualHost>
<VirtualHost *:80>
ServerName tls.brentrichison.com
DocumentRoot /var/www/html/tlsbaseball.com
</VirtualHost>
The first domain, brentrichison.com
, works fine. The subdomains for that domain also work fine. The other domains, tlsbaseball.com
and greyspace.io
do not work at all.
Each domain has a Hosted Zone on Route 53. Each domain's "A" Record points to 54.82.145.116
. Each domain has its own SOA Record, and each zone has its own DNS Records.
Does anyone have any ideas why my other two domains won't resolve? Thanks.
I can see from the whois greyspace.io and tlsbasebll.com are pointed to Route53 servers, but they're not answering my queries. Look at the hosted zones in Route 53 and verify that the NS servers specified there are the ones from Amazon and line up with what you have in DNS. It's pretty easy to swap them or get them wrong when you're doing multiple domains.
Based on your comment below, it sounds like you registered these domains with amazon, and then recreated the hosted zone a few times. Let's look a little closer at what that really looks like for, say,
greyspace.io
:greyspace
registration data within the.io
registry, along with dns glue records that point requests for the domain to the AWS Route53 servers from step 1Now the domain's dns hsoted zone is "live", in that the whois data points to it.
So all you have to do is go into your domain registration and update the whois listed nameservers to point to the new ones you got when you recreated the hosted zone.
On an unrelated note, why do you have this in here twice?
2 sites with the same docroot? I'm confused. Aren't those actually the same site?