Score:0

Try another nginx server if not found

ma flag

we’re in a middle of migrating our nginx to another one that is running under docker container (until we finish the migration it’s using a virtual network)

How can I redirect all request to not founded server (block) to the another nginx instance?

For example if I open the browser on http://some.thing.com (DNS route to my server) and my nginx server doesn’t found that server (block) than it should try another nginx server for that


Using 404 on each server block isn’t a solution cause we have many of them

Nikita Kipriyanov avatar
za flag
Try reverse proxying the default virtual host (the `server` block which has the `listen 80 default_server` or similar https clause).
Raz Luvaton avatar
ma flag
Something like `error_page 404 = @myownredirect;` and `location @myownredirect { proxy_pass … }`?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.