Ok so today I got a new VPS server due to the fact a huge amount of domains were pointed to my old domain - I have no previous domains pointing to my new IP. I now have setup the server with ubuntu 16.04 - previous being Centos 7. I have tried everything to get .htacccess to work and my Virtual Hosts. Here below I have linked all the files!
.htaccess https://pastebin.ubuntu.com/25622957/ 000-default.conf https://pastebin.ubuntu.com/25622958/ apache2.conf https://pastebin.ubuntu.com/25622964/
My question is what have I setup wrong here and the goal is I want to make sure if any domain is pointed to my Origin it will automatically rewrite to mydomain.com - I also want to have my Origin IP also either deny access or rewrite to the main site. I also am not sure how to check if my rewrites are even working as between different browsers different actions happen.