Here is what I have so-far, but I'm not sure how to go back. location ~ ^/(secure) { if ($scheme = 'http') { #Insecure, lets go to https rewrite ^/(.*)$ https://$host/$1 permanent; } } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,24495,24496#msg-24496