urn:acme:error:unauthorized:: клиент испытывает недостаток в достаточной ошибке авторизации. Давайте Зашифруем + Nginx + Пассажир Phusion

У меня есть приложение MeteorJS, работающее на моем Цифровом Океанском сервере (использующий nginx). Я следовал этому учебному руководству для установки, Давайте Зашифруем сертификат на моем домене, но это перестало работать на этой команде:

sudo letsencrypt certonly -a webroot --webroot-path=/var/www/html -d luludeals.com -d www.luludeals.com

Я получаю эту ошибку:

Failed authorization procedure. www.luludeals.com (http-01): urn:acme:error:unauthorized :: The client lacks suffic
ient authorization :: Invalid response from http://www.luludeals.com/.well-known/acme-challenge/AFx6B3zOXAm1aR0ZxyW
kOuBvlesQZRAa3ut551_u3Ms: "<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" type="text/css" class="__meteor-css__" href="/462460ddb68331f2c370d7afc3d", luludeals.com
(http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http:/
/luludeals.com/.well-known/acme-challenge/qFLoXVN5sZaZGZvwI-uSlTQx4BXL7vXQpYmv5I72KP0: "<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" type="text/css" class="__meteor-css__" href="/462460ddb68331f2c370d7afc3d"

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

   Domain: www.luludeals.com
   Type:   unauthorized
   Detail: Invalid response from http://www.luludeals.com/.well-known
   /acme-challenge/AFx6B3zOXAm1aR0ZxyWkOuBvlesQZRAa3ut551_u3Ms:
   "<!DOCTYPE html>
   <html>
   <head>
     <link rel="stylesheet" type="text/css" class="__meteor-css__"
   href="/462460ddb68331f2c370d7afc3d"

   Domain: luludeals.com
   Type:   unauthorized
   Detail: Invalid response from http://luludeals.com/.well-known
   /acme-challenge/qFLoXVN5sZaZGZvwI-uSlTQx4BXL7vXQpYmv5I72KP0:
   "<!DOCTYPE html>
   <html>
   <head>
     <link rel="stylesheet" type="text/css" class="__meteor-css__"
   href="/462460ddb68331f2c370d7afc3d"

Мой /etc/nginx/sites-available/default файл похож на это:

# Default server configuration
#
server {
        listen 80 default_server;
        listen [::]:80 default_server;

        # SSL configuration
        #
        # listen 443 ssl default_server;
        # listen [::]:443 ssl default_server;
        #
        # Note: You should disable gzip for SSL traffic.
        # See: https://bugs.debian.org/773332
        #
        # Read up on ssl_ciphers to ensure a secure configuration.
        # See: https://bugs.debian.org/765782
        #
        # Self signed certs generated by the ssl-cert package
        # Don't use them in a production server!
        #
        # include snippets/snakeoil.conf;

        root /var/www/luludeals;

        # Add index.php to the list if you are using PHP
        index index.html index.htm index.nginx-debian.html;

        server_name _;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }

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


        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
            #
        # location ~ \.php$ {
        # include snippets/fastcgi-php.conf;
        #
        # With php7.0-cgi alone:
        # fastcgi_pass 127.0.0.1:9000;
        # With php7.0-fpm:
        # fastcgi_pass unix:/run/php7.0-fpm.sock;
        # }

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        # location ~ /\.ht {
        # deny all;
        #}
   }

Вы знаете, как решить эту проблему? Для установки MeteorJS, я использовал это учебное руководство

Мое приложение служит в /var/www/luludeals/bundle если это помогает

2
задан 10 November 2016 в 12:41

0 ответов

Другие вопросы по тегам:

Похожие вопросы: