I have two different domain names with completely different websites. This is how my nginx configuration looks like:
server {
listen 80;
server_name domainnameone.com;
location / {
proxy_pass http://localhost:3000;
}
}
server {
listen 80;
server_name domainnametwo.com;
location / {
proxy_pass http://localhost:9000;
}
}
The first website resolves well for the IP address. For the second domain if I go to ipaddress:9000 I get the file that is supposed to correspond with website two as desired. I'm trying to set route53 to display the website2 when I go to www.domainnametwo.com, currently it's displaing the first website. I've created a new hosted zone for the second website and pointed the domain registrar to the values in the hostedzone2. I can only get the second website to show if I specify the port on www.domainnametwo.com:9000. I must specify that I am using cloudfront for the first website but I don't think that should interfere.
Is this a nginx or a route53 issue?