Mobile app version of vmapp.org
Login or Join
Connie744

: 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,

@Connie744

Posted in: #Proxy #ReverseProxy

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Connie744

1 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme