I have the following nginx conf file (shortened for the purose of this question) that is creating a cookie: map $http_referer $setCookie { default ""; ~*somewebsite\.com "referrer=bl;Domain=.mysite.com;Max-Age=31536000"; } server{ listen 80; server_name mysite.com www.mysite.com dev.mysite.by Broham - Nginx Mailing List - English