Thank you all for helping me. I didn't clearly about why browsers didn't recognize my SSL. If I remove: location / { rewrite ^/ http://$http_host$request_uri permanent; } The SSL was working fine, I think there were some objects still linking using http. Is there any help to solve the problem? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,214981,216507#msg-216507