I suppose when the user hits login or logout button the url needs to be http://example.com/purge if my default logged in page is http://example.com/ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,220510,220521#msg-220521