Discover Centmin Mod today
Register Now

Letsencrypt Migrating to HTTP/2 HTTPS with LetsEncrypt stumbling at cert check at .well-known

Discussion in 'Domains, DNS, Email & SSL Certificates' started by josh, Sep 26, 2017.

  1. josh

    josh Premium Member Premium Member

    29
    2
    3
    May 27, 2014
    Ratings:
    +2
    Local Time:
    6:15 PM
    Now getting same error, same server, different domain. The data for this domain resides on block storage add-on (at /mnt/volume-nyc1-01/domain.org/public) but it's on the same digital ocean droplet. See original conf file below.

    Code:
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    
    # redirect from non-www to www
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
    #server {
    #            listen   80;
    #            server_name domain.org;
    #            return 301 $scheme://www.domain.org$request_uri;
    #    }
    #
    server {
        listen 80;
        server_name  domain.org;
        rewrite ^    http://www.domain.org$request_uri? permanent;
    }
    
    server {
      listen 80;
      server_name www.domain.org;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /mnt/volume-nyc1-01/domain.org/log/access.log combined;
      error_log /mnt/volume-nyc1-01/domain.org/log/error.log;
    
      root /mnt/volume-nyc1-01/domain.org/public;
    
    
    rewrite ^/forum-([0-9]+)-page-([0-9]+)\.html$ /forums/$1/page-$2 permanent;
    rewrite ^/forum-([0-9]+).html$ /forums/$1/ permanent;
    rewrite ^/thread-([0-9]+).html$ /threads/$1/ permanent;
    rewrite ^/thread-([0-9]+)-page-([0-9]+)\.html$ /threads/$1/page-$2 permanent;
    
      location / {
                index index.php index.html  index.htm;
                try_files $uri $uri/ /index.php?$uri&$args;
    
            }
    
        location /internal_data/ {
            internal;
            allow 127.0.0.1;
            deny all;
            }
    
        location /library/ {
            internal;
            allow 127.0.0.1;
            deny all;
            }
    
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/php.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
      include /usr/local/nginx/conf/vts_server.conf;
    }
    


     
  2. josh

    josh Premium Member Premium Member

    29
    2
    3
    May 27, 2014
    Ratings:
    +2
    Local Time:
    6:15 PM
    Got it. Just changed the file paths in a couple of the commands!
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:15 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Yeah web root needs changing in acme.sh command

    IIRC, DigitalOcean block storage is not included in daily backups? I would be careful using block storage for a site
     
  4. josh

    josh Premium Member Premium Member

    29
    2
    3
    May 27, 2014
    Ratings:
    +2
    Local Time:
    6:15 PM
    I'll double check on that one. Thanks for the heads up