Install Godaddy SSL Certificate in NGINX

Discussion in 'Installation/Configuration' started by sidbyron, Sep 24, 2014.

  1. sidbyron

    sidbyron Member

    Hi all,

    I want to install a UCC SSL certificate or SNI certificate of Godaddy. But I don't unserstand how to do in NGINX.

    Someone can help me? I try some of thing on this forum but I never understands how to activate in ISPCONFIG control panel.

    Thank you.:confused:
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The procedure is the same then for apache:

    1) Login to ispconfig, go to the website settings, enable ssl, go to the ssl tab of the website, enter the cert details and choose "create certificate" as action, then click save.
    2) after about 1 minute, you see the self signed cert and csr on the ssl tab, take that csr and let it sign from godaddy.
    3) yiu will get a new ssl cert and the ssl chain / bundle files back from godaddy, paste the ssl cert into the ssl cert field, the chain certificates in the bundle field, select "save certificate" as action and press save.
     
  3. sidbyron

    sidbyron Member

    Thank you Till.

    I have another question. I installed roundcube in /var/www/apps for share the same site to all my virtual hosts.

    My certificate is done and works perfectly but I want to redirect the http request to https.

    I put this code:

    Code:
             location ~* ^/webmail/{
             if ($scheme = 'http') {
                 rewrite ^ https://$http_host$request_uri? permanent;
             }
    
    Can you help me to know if the instruction is right???

    Here is all my configuration for rouncube webmail:

    Code:
    #Configuracion de Roundcube
    client_max_body_size 100M;
    location /webmail {
             root /var/www/apps/;
             index index.php index.html index.htm;
             location ~ (.+\.php)$ {
                        try_files $uri =404;
                        include /etc/nginx/fastcgi_params;
                        fastcgi_pass unix:/var/run/php5-fpm.sock;
                        fastcgi_param HTTPS on;
                        fastcgi_index index.php;
                        fastcgi_intercept_errors on;
                        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                        fastcgi_buffer_size 128k;
                        fastcgi_buffers 256 4k;
                        fastcgi_busy_buffers_size 256k;
                        fastcgi_temp_file_write_size 256k;
                        
             }
             location ~* /.svn/ {
                         deny all;
             }
             location ~* /README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ {
                         deny all;
             }
            location ~* ^/webmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                         root /var/www/apps/;
             }
            location ~* ^/webmail/{
             if ($scheme = 'http') {
                 rewrite ^ https://$http_host$request_uri? permanent;
             }
            }
    
    }
    
    Can you help me??? :confused:

    Kind Regards.
     
    Last edited: Oct 3, 2014
  4. sidbyron

    sidbyron Member

    Somebody can help me please???:confused:
     

Share This Page