So I have moved on to using Azure, and unfortunately Azure doesnt have Static IP address. I have setup a micro AWS instance and installed apache on it.
I am looking to setup a default virtual host (for any sites which are not named by hostname) and redirect any traffic to the AWS APache server to www.name.com
I am looking for a rule that does this:
http://domain1.com 302 redirect to http://www.domain1.com?src=naked-domain
http://domain2.net 302 redirect to http://www.domain2.net?src=naked-domain
Essentially its just a 302 redirect for every single domain which a virtual host doesnt exist for.