title: Serving Django content through AWS Application Load Balancer
body: <p>I'm building a django web application on an ec2 instance that's in an autoscaling group and fronted with an Application Load Balancer.</p>
  
  <p>I've configured uwsgi and nginx and when I run the command</p>
  
  <pre><code>uwsgi --socket /tmp/uwsgi.sock --module MyProject.wsgi --chmod-socket=666 --virtualenv /path/to/my/virtual/env/
  </code></pre>
  
  <p>Everything works great when I access the application through the IP adress. I can navigate to the site and everything works well. </p>
  
  <p>However, when I try and access the website through the URL using the domain name that I own and registered though Route 53, the website's functionality works and is being served, but the static content (css files, etc) aren't rendering.</p>
  
  <p>My Auto-Scaling Group says the instance is healthy. The target group says the targets are healthy. The ALB is listening on ports 80 and 443 and forwarding the traffic to the Target Group.</p>
  
  <p>Does anyone know why the static content isn't rendering when going through the registered domain name even though it works when accessing it directly through the Public IP Address?</p>