title: Amazon Route 53 setup subdomain to point to Load balancer
body: <p>I have 2 services running on AWS.
  Lets say my domain is example.com</p>
  
  <p>I run both of them through Elasticbeanstalk.</p>
  
  <p>One is a single EC2 instance with a elastic IP setup and running on the apex - <code>example.com</code> and <code>www.example.com</code> which works correctly and i can access it.</p>
  
  <p>The other one is a service that has a load balancer in front and i want it to be accessible through sockets.example.com which i cannot get to work.</p>
  
  <p>I have the route 53 nameservers setup in namecheap.com from where i bought the domain.</p>
  
  <p>Here is my whole setup:</p>
  
  <p><img src="https://i.stack.imgur.com/ZbJ1w.png" alt="Current Route 53 setup"></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I can get the URl from the <code>alias target</code> and open it in a browser for example or ping it. That works.</p>
  
  <p>I have the loadbalancer setup to forward the traffic from 80 to 8080 where my sockets are because of the root access rights for attaching them with sockets i was unable to set them up on the lower ports such as 80. But i don't think thats the issue since i am running a node.js app and i can open a sample page if i go straight on the Alias target URL.</p>