기존에 무료도메인으로 연습을 충분히 했다고 (뻥좀 보태서 100번) 생각했는데..

정작 돈주고 산 도메인을 연결하려고 하니 첨보는 오류메세지가 떠서 질문합니다 ㅠㅠㅠㅠㅠㅠㅠㅠ

 

 

 

이메일 입력 후

agree 하고 좀 기다리다가...

 

Failed authorization procedure. ******.*** (http-01): urn:acme:error:unauthorized :: 
The client lacks sufficient authorization :: Invalid response from
http://*****.***/.well-known/acme-challenge/9A65HAGCXY_1Sg_1Px8vMd06QNIRuNEzHP_enu8D9LA: "<html>

<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>"

IMPORTANT NOTES:
 - If you lose your account credentials, you can recover through
   e-mails sent to ******@******.***.
 - The following errors were reported by the server:

   Domain: ******.***
   Type:   unauthorized
   Detail: Invalid response from
   http://******.***/.well-known/acme-challenge/UiGdPegoi9J19EhGNg5hGhKaKGQtABMF84GBW6tzJQE:
   "<html>
   <head><title>403 Forbidden</title></head>
   <body bgcolor="white">
   <center><h1>403 Forbidden</h1></center>
   <hr><center>"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A record(s) for that domain
   contain(s) the right IP address.
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.

 

 

오늘 구입한 도메인을 네임서버 설정해놓고

Let's Encrypt로 SSL 설치를 하려고하는데 계속 이런 메세지가 떠서...

 

 

1. nginx 설치후 네임서버 설정(Vultr) 도메인명으로 접속 가능한걸 확인후 Let's Encrypt 시도-> 실패.

2. SSL 설치 실패 후, 도메인명으로 접속시도시 접속안되는 현상..

3. 네임서버 등록에 시간이 걸릴수도 있다는 글을 봐서 4시간 정도 후에 시도해도 마찬가지 현상..

4. 네임서버를 교체(freenom) 후, 재시도 -> 실패. 도메인명으로는 계속 접속 가능.

 

Let's Encrypt 설치방법은 https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 을 참고했습니다.

 

 

하루밤 자고 나면 될려나...... ㅠ

  • profile

    http://******.***/.well-known/acme-challenge/어쩌고저쩌고

     

    님 컴퓨터에서는 이 주소에 정상적으로 접속할 수 있는지 확인해 보세요.

    nginx 설정이나 퍼미션이 문제인 것 같습니다.

  • profile profile
    그 주소로 접속시도하면 403 Forbidden 이 뜨고요.

    nginx 설정에는
    location ~ /.well-known {
    allow all;
    }

    .well-known 폴더 권한은 755 로 되어있습니다.
  • profile profile
    ~를 빼고 location /.well-known으로 바꿔보세요.
  • profile profile

    음 변경해서 시도해봤는데 같은 결과가.. ㅠ

    같은 설정으로 무료도메인 바꿔가며 수십차례할땐 괜찮았는데 이러니 영 감을 못잡겠네요..

     

    일단.... 시간이 해결해주리라 믿어보면서...

    내일 해보는걸로.......

     

     

  • profile profile

    음.. 대충 원인을 알아낸거 같은데..

    /.well-known 폴더내 주소에 접근할수 없다는게 문제인거같아서..


    nginx default 설정을 기존에 

     

    server {
        listen       80;
        server_name  *****;
        root   /usr/share/nginx/html;
    
    include xe_rewrite.conf;
    
    location ~ /.well-known {
            allow all;
        }
    
        ....
    }

    이런식으로 xe_rewrite.conf 를 location블럭들의 위쪽에 위치시켰었는데

    이렇게하고 .well-known 폴더에 index00.html 파일을 넣고 브라우저에서 주소로 확인하려하면 403Forbidden 발생.

     

    xe_rewrite.conf의 위치를 location블럭들의 아래쪽으로 위치시키니까 

    .well-known 폴더 아래의 index00.html 파일이 정상적으로 출력됨.

     

     

    Let's Encrypt로 SSL 설치를 다시 시도해보니

    기존처럼 설치까지 완료.

     

     

     

    기존의 xe_rewrite.conf 은 location블럭의 상단에 위치해도 문제가 없었는데,

    최근 바뀐 xe_rewrite.conf는 location블럭 하단에만 위치시켜야하는거 같습니다.

     

     

  • profile profile
    아, 그런 문제가 발생하는군요. 패치했습니다.
    https://github.com/rhymix/rhymix/commit/ba8ff52904b8e59ca92c82cbdf3c3647ddf15786