Sorry Maxim. I didn't understood your answer. Can you explain better? Why this work for detect when users goes off on http, but not in https ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,209967,210038#msg-210038