server {
        listen 80;
        server_name  test.my.com;

        set $challenge 0;
        location /.well-known/acme-challenge/ {
          set $challenge 1;
          proxy_pass http://certguard:8888/.well-known/acme-challenge/;
        }
        if ( $challenge = 0 ) {
          rewrite ^(.*)$ https://${server_name}$1 permanent;
        }
    }    

发表回复

您的电子邮箱地址不会被公开。

Captcha Code