So we had this website on a business hosting plan, and then we had to add a feature with websockets so we tried vps hosting. Now after setting up the vps server with Apache and replacing the dns records with the new vps ip address it was working on insecure http. After I resolved the ssl issue by replacing the ipv6 address as the new IP address the ssl generation was successful however after some time the virtualmin and everything crashed. Now the thing is the old ip address when accessed directly was also showing forbidden for some reason. Now i replaced all the vps ip address with the old business hosting ip address and now it is working fine but it is showing the business hosting files. And here we are stuck as to what to do next with the vps hosting because if i try setting up again similar problem might arise again
Now the thing is, at one point the old ip was working fine, even with SSL; and the NEW_IP with VPS (only http) was working fine. Not sure if webserver config files were empty or not at that moment. As soon as SSL started working for New_IP; both New and Old crashed, and surprisingly old started showing 403 error. And here we are stuck as to what to do next with the vps hosting because if we try setting up VPS again, even old business hosting might shut down again.
Can some DNS record might be causing some conflicts?
Thx everyone, we were able to sort this issue. We simply put vps server's ip address in dns records of domain registrar, and followed the process for SSL cert creation. And it worked like a charm.