How to use a custom variable for the scheme in a rewrite rule in nginx
dustyburwell asked: Is there a way to get nginx to treat a custom variable the same as it treats the $scheme in a rewrite rule? For instance: rewrite ^/redirect http://example.com; …