Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

nginx stop if proxy_pass is down

server {
    listen 9000;
    server_name example1.example.com;
    location / {
        set $target something.service.lab.mu;
        proxy_pass http://$target;
    }
}
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #nginx #stop
ADD COMMENT
Topic
Name
8+6 =