auth_basic $do_proxy_auth; auth_basic_user_file /tmp/htpasswd; add_header Set-Cookie "magic_ssl_proxy_auth=${COOKIE_VALUE};max-age=3153600000;Secure;HttpOnly;path=/";