nginx_1 | 176.37.147.35 - - [25/Jul/2017:13:16:50 +0000] "GET /?type=in&stat=setup&ori=380931921000&dest=380442002043&date=2015-03-17%2015:54:10&sid=20206 HTTP/1.1" 499 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" "-"
nginx_1 | 2017/07/25 13:17:50 [error] 5#5: *3 upstream timed out (110: Connection timed out) while connecting to upstream, client: 176.37.147.35, server: , request: "GET /?type=in&stat=setup&ori=380931921000&dest=380442002043&date=2015-03-17%2015:54:10&sid=20206 HTTP/1.1", upstream: "https://34.231.79.116:80/hooks/catch/_ID_/_ID_//", host: "95.213.200.12"
nginx_1 | 176.37.147.35 - - [25/Jul/2017:11:05:58 +0000] "GET /hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/hooks/catch/_ID_/_ID_/?type=in&stat=setup&ori=380931921000&dest=380442002043&date=2015-03-17%2015:54:10&sid=20206 HTTP/1.1" 302 161 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" "-"
nginx_1 | 2017/07/25 10:37:45 [error] 5#5: *1 rewrite or internal redirection cycle while processing "/hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//hooks/catch/_ID_/_ID_//", client: 176.37.147.35, server: , request: "GET /?type=in&stat=setup&ori=380931921000&dest=380442002043&date=2015-03-17%2015:54:10&sid=20206 HTTP/1.1", host: "95.213.200.12"
upstream zapier {
server hooks.zapier.com;
}
# Define the parameters for a specific virtual host/server
server {
# Configure NGINX to proxy HTTP requests to the upstream server (Zapier)
location / {
# Define the location of the proxy server to send the request to
rewrite ^ /hooks/catch/_id_/-id_/$1;
proxy_pass https://zapier;
}
}
nginx_1 | 2017/07/25 10:24:02 [error] 5#5: *5 rewrite or internal redirection cycle while processing "/hooks/catch/_id_/_id_/", client: 176.37.147.35, server: , request: "GET /?type=in&stat=setup&ori=380931921000&dest=380442002043&date=2015-03-17%2015:54:10&sid=20206 HTTP/1.1", host: "95.213.200.12"
Если директива proxy_pass указана с URI, то при передаче запроса серверу часть нормализованного URI запроса, соответствующая location, заменяется на URI, указанный в директиве: