Skip to content

Instantly share code, notes, and snippets.

@selcukusta
Created July 21, 2017 20:07
Show Gist options
  • Select an option

  • Save selcukusta/e1d4ced51c1fc48c5a925c387d85b675 to your computer and use it in GitHub Desktop.

Select an option

Save selcukusta/e1d4ced51c1fc48c5a925c387d85b675 to your computer and use it in GitHub Desktop.
server {
set $new_cookie $http_cookie;
if ($http_cookie ~ "(.*)(?:^|;)\s*non_ascii=[^;]+(.*)") {
set $new_cookie $1$2;
}
proxy_set_header Cookie $new_cookie;
listen 8080;
server_name localhost;
location /abc/ {
proxy_pass http://sample-site:5000/;
proxy_http_version 1.1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment