: Using a server to host mail servers and redirect website requests to another server I have 2 servers. At my registrar, the DNS of my domain points to Server1. How can I set up my servers,
I have 2 servers. At my registrar, the DNS of my domain points to Server1.
How can I set up my servers, so that Server1 redirects all Web requests for my domain to Server2.
My goal is that I can change Server2 whenever I want without having to change the DNS at my registrar (and have to wait X hours for the changes to spread). I would simply change something in Server1 so that it redirects to Server3 instead of Server2 and as soon as I would do that, it would work for all visitors.
Does it make sense? How would I set this up? I looked at DNS servers and slaves but I am confused.
More posts by @Connie744
1 Comments
Sorted by latest first Latest Oldest Best
You can add the below line to the .htaccess file on server 1 so that it redirects all http requests to server 2.
Redirect 301 / ip-address-of-server-2
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.