Skip to content

Instantly share code, notes, and snippets.

@sirsquidness
sirsquidness / proxy.conf
Created September 22, 2016 12:42
How to have nginx proxy_pass follow upstream 302 redirects (eg, when you're running a steam cache and you're behind Cox's layer 7 interception stuff)
# This config came around after a friend had problems with a Steam cache on his
# Cox internet connection. Cox would intercept any requests to Steam content
# servers and return a 302 to Cox's servers. The cache would return the 302
# to the Steam client, and the Steam client would go directly to Cox, bypassing
# the cache.
# This config makes nginx follow the 302 itself, and caches the result of the
# redirect as if it was the response to the original request. So subsequent
# requests to the URL that returned a 302 will get the file instead of a 302.

Keybase proof

I hereby claim:

  • I am sirsquidness on github.
  • I am sirsquidness (https://keybase.io/sirsquidness) on keybase.
  • I have a public key whose fingerprint is D298 66B4 B843 D1FF 25A0 036C EEF4 FC66 35C4 EBE7

To claim this, I am signing this object: