Hi.
I have a nginx config file:
And I want to check urls and when it return code 200.
If a page return another code, not 200, will run the trigger.
How can i do it?
I have a nginx config file:
server {
listen 192.168.1.10;
server_name test.com;
location /page1 {
proxy_pass http://test2.com/check;
proxy_redirect off;
}
location /page2 {
proxy_pass http://test3.com/check;
proxy_redirect off;
}
listen 192.168.1.10;
server_name test.com;
location /page1 {
proxy_pass http://test2.com/check;
proxy_redirect off;
}
location /page2 {
proxy_pass http://test3.com/check;
proxy_redirect off;
}
If a page return another code, not 200, will run the trigger.
How can i do it?
Comment