I am new on this forum and I am also new working with nginx. I know the
basic of nginx.
I was wondering if someone could help me to write a script to rename a
cookie name in a http response header.
I have the following apache script for that but I am unable to convert it to
ProxyPass http://internal-elb.eu-west-1.elb.amazonaws.com/ ProxyPassReverse http://internal-elb.eu-west-1.elb.amazonaws.com/ <IfModule mod_headers.c>
#Change from AWSELB cookie to INTELB
Header edit Set-Cookie "AWSELB=([0-9a-zA-Z\-]*);"
# When the client request arrives with AWSELB cookie name,
change it to OLD
RequestHeader edit Cookie "AWSELB=([0-9a-zA-Z\-]*)"
# Rename the INTELB to AWSELB again so the reverse proxy can
send the request to internal elb
RequestHeader edit Cookie "INTELB=([0-9a-zA-Z\-]*)"
# Td funciona como experado.