Lukas Tribus
March 25, 2014 05:24PM
Hi,


> Mainly because I can't seem to get it to work - nginx, apache or
> iptables.
>
> I'm sure someine can come forward with technical reasons why...

In this thread you asked about how this could be done, you didn't say
that you already tried something and that it didn't work.

So you are hoping that someone may be able to provide the technical
reason for a failure you didn't even mention in the first place (let alone
some details)?



As for your original question, I would configure the old server like this,
to pass the requests to the new server:

server {
    listen       80;
    location / {
        proxy_pass       http://<newserverip>:80;
        proxy_set_header Host     $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}
server {
    listen       443 ssl;
    location / {
        proxy_pass       https://<newserverip>:443;
        proxy_set_header Host      $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}




Regards,

Lukas
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

moving servers... https woes.

GreenGecko March 24, 2014 08:52PM

Re: moving servers... https woes.

Spanky March 24, 2014 09:04PM

Re: moving servers... https woes.

GreenGecko March 24, 2014 10:42PM

RE: moving servers... https woes.

Lukas Tribus March 25, 2014 11:30AM

RE: moving servers... https woes.

GreenGecko March 25, 2014 04:48PM

RE: moving servers... https woes.

Lukas Tribus March 25, 2014 05:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready