Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Nginx starts processing the request and determines it needs to be proxied to Apache as it is a PHP request.
- 18:32:29 [debug] 10603#0: *35 http process request line
- 18:32:29 [debug] 10603#0: *35 http request line: "GET /index.php?params=xyz HTTP/1.1"
- 18:32:29 [debug] 10603#0: *35 http uri: "/index.php"
- 18:32:29 [debug] 10603#0: *35 http args: "params=xyz"
- 18:32:29 [debug] 10603#0: *35 using location: @proxy_nofilter "/index.php?params=xyz"
- Nginx connects to Apache (Less than one second: 18:32:29 to 18:32:29)
- 18:32:29 [debug] 10603#0: *35 http upstream request: "/index.php?params=xyz"
- 18:32:29 [debug] 10603#0: *35 http upstream send request handler
- 18:32:29 [debug] 10603#0: *35 http upstream send request
- 18:32:29 [debug] 10603#0: *35 http upstream send request body
- 18:32:29 [debug] 10603#0: *35 chain writer buf fl:1 s:1531
- 18:32:29 [debug] 10603#0: *35 chain writer in: 00007FB5879E7818
- 18:32:29 [debug] 10603#0: *35 writev: 1531 of 1531
- 18:32:29 [debug] 10603#0: *35 chain writer out: 0000000000000000
- 18:32:29 [debug] 10603#0: *35 event timer del: 30: 1486492379442
- 18:32:29 [debug] 10603#0: *35 event timer add: 30: 600000:1486492949442
- -Pay attention to how the steps before and after this line are completed in less than a second (18:32:29 to 18:32:29)
- 18:32:29 [debug] 10603#0: *35 post event 00007FB58769D230
- 18:32:29 [debug] 10603#0: *35 post event 00007FB5874C2610
- 18:32:29 [debug] 10603#0: *35 delete posted event 00007FB58769D230
- 18:32:29 [debug] 10603#0: *35 http upstream request: "/index.php?params=xyz"
- Apache returns "303 See other" and redirects to OAuth Provider (Less than one second: 18:32:29 to 18:32:29)
- 18:32:29 [debug] 10603#0: *35 http proxy status 303 "303 See other"
- 18:32:29 [debug] 10603#0: *35 http proxy header: "Date: Tue, 07 Feb 2017 18:32:29 GMT"
- 18:32:29 [debug] 10603#0: *35 http proxy header: "Server: Apache"
- 18:32:29 [debug] 10603#0: *35 http proxy header: "Location: https://oauth.site.com/authorize?callback=callback.php"
- Auth complete on site and callback initiated. (Two seconds: 18:32:29 to 18:32:32)
- Nginx starts processing the callback request and determines it needs to be proxied to Apache as it is a PHP request. (Less than one second: 18:32:31 to 18:32:31)
- 18:32:31 [debug] 10603#0: *35 http process request line
- 18:32:31 [debug] 10603#0: *35 http request line: "GET https://www.example.com/callback.php HTTP/1.1"
- 18:32:31 [debug] 10603#0: *35 using location: @proxy_nofilter "https://www.example.com/callback.php"
- Nginx connects to Apache (Less than one second: 18:32:31 to 18:32:31)
- 18:32:31 [debug] 10603#0: *35 http upstream request: "https://www.example.com/callback.php"
- 18:32:31 [debug] 10603#0: *35 http upstream send request handler
- 18:32:31 [debug] 10603#0: *35 http upstream send request
- 18:32:31 [debug] 10603#0: *35 http upstream send request body
- 18:32:31 [debug] 10603#0: *35 chain writer buf fl:1 s:1538
- 18:32:31 [debug] 10603#0: *35 chain writer in: 00007FB5879E7820
- 18:32:31 [debug] 10603#0: *35 writev: 1538 of 1538
- 18:32:31 [debug] 10603#0: *35 chain writer out: 0000000000000000
- 18:32:31 [debug] 10603#0: *35 event timer del: 30: 1486492381343
- 18:32:31 [debug] 10603#0: *35 event timer add: 30: 600000:1486492951343
- -Pay attention to how the steps before and after this line now take 2 minutes (18:32:31 to 18:34:12)
- -This was a rare successful attempt and usually, there is a 504 timeout here instead.
- -Trying to understand why there is this long delay.
- 18:34:12 [debug] 10603#0: *35 post event 00007FB58769D230
- 18:34:12 [debug] 10603#0: *35 post event 00007FB5874C2610
- 18:34:12 [debug] 10603#0: *35 delete posted event 00007FB58769D230
- 18:34:12 [debug] 10603#0: *35 http upstream request: "https://www.example.com/callback.php"
- Apache returns "303 See other" and redirects to index.php (Less than one second: 18:34:12 to 18:34:12)
- 18:34:12 [debug] 10603#0: *35 http proxy status 303 "303 See other"
- 18:34:12 [debug] 10603#0: *35 http proxy header: "Date: Tue, 07 Feb 2017 18:32:31 GMT"
- 18:34:12 [debug] 10603#0: *35 http proxy header: "Server: Apache"
- 18:34:12 [debug] 10603#0: *35 http proxy header: "Set-Cookie: somevar=1; expires=Tue, 07-Feb-2017 19:04:12 GMT; Max-Age=1800"
- 18:34:12 [debug] 10603#0: *35 http proxy header: "Set-Cookie: somehash; path=/; domain=www.example.com; HttpOnly"
- 18:34:12 [debug] 10603#0: *35 http proxy header: "Location: /index.php"
- Nginx starts index.php request and determines it needs to be proxied to Apache as it is a PHP request. (Less than one second: 18:34:12 to 18:34:12)
- 18:34:12 [debug] 10603#0: *35 http process request line
- 18:34:12 [debug] 10603#0: *35 http request line: "GET /index.php HTTP/1.1"
- 18:34:12 [debug] 10603#0: *35 http uri: "/index.php"
- 18:34:12 [debug] 10603#0: *35 http args: ""
- 18:34:12 [debug] 10603#0: *35 using location: @proxy_nofilter "/index.php?"
- Nginx connects to Apache (Less than one second: 18:34:12 to 18:34:12)
- 18:34:12 [debug] 10603#0: *35 http upstream request: "/index.php?"
- 18:34:12 [debug] 10603#0: *35 http upstream send request handler
- 18:34:12 [debug] 10603#0: *35 http upstream send request
- 18:34:12 [debug] 10603#0: *35 http upstream send request body
- 18:34:12 [debug] 10603#0: *35 chain writer buf fl:1 s:1443
- 18:34:12 [debug] 10603#0: *35 chain writer in: 00007FB5879E77A8
- 18:34:12 [debug] 10603#0: *35 writev: 1443 of 1443
- 18:34:12 [debug] 10603#0: *35 chain writer out: 0000000000000000
- 18:34:12 [debug] 10603#0: *35 event timer del: 30: 1486492482242
- 18:34:12 [debug] 10603#0: *35 event timer add: 30: 600000:1486493052242
- -No problem here again. Issue only with callback request
- 18:34:12 [debug] 10603#0: *35 post event 00007FB58769D230
- 18:34:12 [debug] 10603#0: *35 post event 00007FB5874C2610
- 18:34:12 [debug] 10603#0: *35 delete posted event 00007FB58769D230
- 18:34:12 [debug] 10603#0: *35 http upstream request: "/index.php?"
- Apache returns "200 OK" and index.php is served
- 18:34:12 [debug] 10603#0: *35 http proxy status 200 "200 OK"
- 18:34:12 [debug] 10603#0: *35 http proxy header: "Date: Tue, 07 Feb 2017 18:34:12 GMT"
- 18:34:12 [debug] 10603#0: *35 http proxy header: "Server: Apache"
- 18:34:12 [debug] 10603#0: *35 http proxy header: "Content-Length: 51030"
- 18:34:12 [debug] 10603#0: *35 http proxy header: "Content-Type: text/html; charset=utf-8"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement