Re: nginx rewrite mit http_cookie

Vladislav Vorobiev <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Am 31. März 2011 10:13 schrieb Philip Bauer <[email protected]>:
> Wie mache ich ein rewrite wenn das cookie '__ac' (das Authentifizierungs-Cookie von Plone) existiert?
>
> Ich versuche das hier:
>      if ($http_cookie ~* "__ac=" ) {
>        rewrite ^(.*) https://$server_name$1 redirect;
>      }
>

if ($http_cookie ~* "__ac=([^;]+)(?:;|$)" ) {
        rewrite /(.*) https://$host/$1 permanent;
}

-- 
Best Regards
Vlad Vorobiev


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.