Allow a domain to load static files from itself

Right now, example.herokuapp.com tries to load static files from example.com which either does not exist or pointing to sub.example.com which pointing to example.herokuapp.com (causing a redirect loop).