“Procedimento de autorização falho” ao tentar adicionar certificados SSL ao site

0

Seguindo de minha pergunta anterior , quando executei este comando no meu servidor digital ocean:

sudo certbot --authenticator webroot --webroot-path /home/james/postr --installer nginx -d <sitename>

Eu recebo este erro:

Failed authorization procedure

The client lacks sufficient authorization :: Invalid response from 
http://www.<sitename>.com/.well-known/acme-challenge/oAVGa4eBNfQQ1Vrn_q-
iKjV2T6ue3H5kOcxEWpztrHc

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

   Domain: www.venvor.com
   Type:   unauthorized
   Detail: Invalid response from
   http://www.<sitename>.com/.well-known/acme-challenge/oAVGa4eBNfQQ1Vrn_q-
   iKjV2T6ue3H5kOcxEWpztrHc:
   "<h1>Not Found</h1><p>The requested URL
   /.well-known/acme-challenge/oAVGa4eBNfQQ1Vrn_q-iKjV2T6ue3H5kOcxEWpztrHc
   was not found on "

Eu já tentei adicionar o caminho do URL ao meu arquivo de URLs:

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^.well-known/acme-challenge/', admin.site.urls),
]

No entanto, ainda não funciona. Alguma ideia do problema?

    
por Zorgan 16.01.2018 / 13:11

0 respostas