Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save juanparati/194cb3a87afb521c7f277733dacc0916 to your computer and use it in GitHub Desktop.
Save juanparati/194cb3a87afb521c7f277733dacc0916 to your computer and use it in GitHub Desktop.
location /foo/ {
proxy_pass https://site.com/;
proxy_redirect off;
proxy_set_header Host site.com;
proxy_ssl_session_reuse off;
proxy_ssl_server_name on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Accept-Encoding "";
sub_filter "https://site.com" "https://reflected.to/foo";
sub_filter_once off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment