A
A
Aldwin2015-09-29 12:15:08
Nginx
Aldwin, 2015-09-29 12:15:08

How to set up redirect in nginx when migrating to another server?

Hello.
I'm moving the site to another server, how to configure nginx on the old server so that it redirects to a new ip?
Pointed proxy_pass to a new ip, but this was not enough

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Romanenko, 2015-09-29
@Aldwin

proxy_pass is not a redirect. redirect is rewrite
what goal do you want to achieve?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question