Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
501 views
in Technique[技术] by (71.8m points)

nginx - Proxy to another server if online

So I've got a Server set up at my home with a Nextcloud and some other instances. Since my ISP isn't reliable and sometimes down, I want my vserver to proxy connections if my home server is online.

Is there a way to do this via nginx? I want my DNS to point on my vserver, which is "always" online and nginx to check on request if my home server is responding/online and proxy requests trough. If the homesever is offline I want the vserver to display a custom error page.

Thanks for your help!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...