View Single Post
  #2  
Old 20th March 2013, 09:24
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 39 Times in 34 Posts
Send a message via Skype™ to almere
Default

Try this:

Code:
server {
       listen         *:80;
       server_name    yourdomain.com;
       rewrite        ^ https://$server_name$request_uri? permanent;
}

server {

        listen *:443 ssl;
        ssl_certificate /var/www/clients/clientnumber/webnumber/ssl/yourdomain.com.crt;
        ssl_certificate_key /var/www/clients/clientnumber/webnumber/ssl/yourdomain.com.key;

### the rest of your code
}
Reply With Quote