Welcome! Log In Create A New Profile

Advanced

proxy: cookie injection or header filter

Andrzej Zadrożny
October 27, 2010 09:10AM
My nginx proxy configuration:

location / {
proxy_pass http://site.external.com/;
proxy_redirect http://site.external.com http://site.local.my;
proxy_set_header Accept-Encoding "";
sub_filter http://site.external.com https://site.local.my;
sub_filter_types text/xml text/css text/javascript;
sub_filter_once off;
}
Every thing would be great but site.external.com sets cookie with
domain .external.com and browser doesn't accept it. So i would like to
filter the header of the response, or inject a cookie (add_header
Set-Cookie "JSESSIONID=....) based on existing Set-Cookie http
response.

Can any one suggest a configuration, module, link ... whatever ?

Best regards.

--
Andrzej Zadrożny
e-mail: azadrozny@gmail.com

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy: cookie injection or header filter

Andrzej Zadrożny October 27, 2010 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready