Thread: Force https
View Single Post
  #7  
Old 10th May 2012, 20:25
wichu wichu is offline
Junior Member
 
Join Date: Apr 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, my solution would only work for Apache, but after a quick search I found this:

http://serverfault.com/questions/250...o-ssl-in-nginx

Code:
rewrite     ^   https://$server_name$request_uri? permanent;
Reply With Quote