Created
July 21, 2017 20:07
-
-
Save selcukusta/e1d4ced51c1fc48c5a925c387d85b675 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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