Hey there!
Our Netlify site name: “vero-next”
Test using this domain: https://www-staging.getvero.com/
We are proxying all requests at Email Marketing Best Practices and Resources | Vero* across to a Wordpress install on WPEngine (raw URL: resources-staging.getvero.com). We have some nginx re-writes which will re-write requests to then raw URL to www-staging.getvero.com UNLESS there is a header present (that header is: X-Vero-Proxied: true
for reference, in case you need to do your own raw requests to check headers, etc…
Here’s the re-write rule we’re using:
[[redirects]]
from = "/resources/*"
to = "https://resources-staging.getvero.com/resources/:splat"
status = 200
headers = {X-Vero-Netlify = "true", X-Vero-Proxied = "true"}
It is working nicely 97% of the time. However, we’re occasionally seeing periods where we receive 502 responses and a total blank response:
It’s happening often enough that it’s unideal. When we see this and do a cURL, we get a response like this:
git:(develop) ✗ curl -i https://www-staging.getvero.com/resources/
HTTP/2 502
x-nf-request-id: 73eb702f-1d83-4a5e-90d8-8baaf7ab96ac
date: Fri, 25 Jun 2021 07:08:37 GMT
I’ve included a few x-nf-request-id
s for reference in the hope this makes it easy to get an answer on what is up:
b366a28e-4950-4f4e-8f64-c1597ad9a213
ecdafb31-257d-4649-9444-99e0ec865095
It might also be worth noting I have rewrites in both netlify.toml
and _redirects
. I’m not quite sure the order of operations between processing those two, in case that matters. That said, that doesn’t feel like the issue here.
Thanks for any insights :).