2017-01-27 3 views
0

Niggle経由でBigbluebuttonインストールにLet's Encryptをインストールしようとしています。 SSLサーバーブロックにこれを追加します。Webルートがルートパスを検出しませんでした。認証の作成を暗号化しましょう。

location ~ /.well-known { 
       allow all; 
     } 

次に、面白い部分があります。

私のウェブサイトroot/var/www/bigbluebutton-default/で構成されたので、私はしてインストールプロセスを開始します

certbot-auto certonly -a webroot --webroot-path=/var/www/bigbluebutton-default 

その後、私はこれを取得:

Saving debug log to /var/log/letsencrypt/letsencrypt.log 
Please enter in your domain name(s) (comma and/or space separated) (Enter 'c' 
to cancel):myurl.com 
Obtaining a new certificate 
Performing the following challenges: 
http-01 challenge for myurl.com 
Using the webroot path /var/www/bigbluebutton-default for all unmatched domains. 
Waiting for verification... 
Cleaning up challenges 
Failed authorization procedure. myurl.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://myurl.com/.well-known/acme-challenge/QbxahZ29q3KrJDeT6QTNqlw57_CwO-W6AmfLDSyHlRQ: "<html> 
<head><title>404 Not Found</title></head> 
<body bgcolor="white"> 
<center><h1>404 Not Found</h1></center> 
<hr><center>" 

IMPORTANT NOTES: 
- The following errors were reported by the server: 

    Domain: myurl.com 
    Type: unauthorized 
    Detail: Invalid response from 
    http://myurl.com/.well-known/acme-challenge/QbxahZ29q3KrJDeT6QTNqlw57_CwO-W6AmfLDSyHlRQ: 
    "<html> 
    <head><title>404 Not Found</title></head> 
    <body bgcolor="white"> 
    <center><h1>404 Not Found</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. 

私はすべての私のDNS設定を確認し、すべてがOKです。だから、私はbigbluebutton-error.logをチェックして、これは私が持っているものです:

2017/01/27 14:29:44 [error] 1213#0: *33 open() "/usr/share/nginx/html/.well-known/acme-challenge/QbxahZ29q3KrJDeT6QTNqlw57_CwO-W6AmfLDSyHlRQ" failed (2: No such file or directory), client: 172.28.105.8, server: myurl.com, request: "GET /.well-known/acme-challenge/QbxahZ29q3KrJDeT6QTNqlw57_CwO-W6AmfLDSyHlRQ HTTP/1.1", host: "myurl.com" 

あなたはその私はそれが任意の場所で宣言されていない/usr/share/nginx/html/をターゲットに見ることができるように。

+0

あなたの 'root'指示文が範囲内にありますか?デフォルトのルートのように見えます( 'root'ディレクティブが指定されていない場合)。 –

答えて

0

ファイルをhttp://myurl.com/.well-known/acme-challenge/test.txtにして、コンソールに移動してwgetで取得します。あなたが外部DNSを使用している場合は、あなたのDNS設定を確認する404のダブルを取得する場合はホストファイルにあなたのドメインを追加することをお見逃しなく。しかし、403がある場合は、Nginxの設定が ".file"(オーバーライド)をブロックしていることを意味します。

もう一つの方法は、--manualパラメータです:

... certonly --manual -d example.com 

それは挑戦ファイルを作成し、あなたはそれを手動でアップロードする必要があります。

関連する問題