cookie rename nginx

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

cookie rename nginx


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

<Location />
        <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.

Posted at Nginx Forum:,276319,276319#msg-276319

nginx mailing list
[hidden email]