I have set up 301 redirects from example.com to www.example.com
Only on the www.example.com vhost I have set up a route to handle traffic and reverse-proxy it to a nodejs app running locally on a certain port.
For some very odd reason, the exact same setup works on a sub-domain e.g...