Hi, this might look like a problem that has been already posted before but unfortuntaley i didnt find any solution to help me. I am running a basic NGINX server configuration and have registered a domain name and now learning how to make it https enabled. Unfotunately it doesnt proceed well. Here is the log
"To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address. Additionally, please check that your computer has a publicly routable IP address and that no firewalls are preventing the server from communicating with the client. If youâre using the webroot plugin, you should also verify that you are serving files from the webroot path you provided.
2018-02-22 02:19:29,697:INFO:certbot.auth_handler:Cleaning up challenges
2018-02-22 02:19:30,868:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File â/usr/bin/certbotâ, line 11, in
load_entry_point(âcertbot==0.21.1â, âconsole_scriptsâ, âcertbotâ)()
File â/usr/lib/python3/dist-packages/certbot/main.pyâ, line 1240, in main
return config.func(config, plugins)
File â/usr/lib/python3/dist-packages/certbot/main.pyâ, line 994, in run
certname, lineage)
File â/usr/lib/python3/dist-packages/certbot/main.pyâ, line 118, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File â/usr/lib/python3/dist-packages/certbot/client.pyâ, line 357, in obtain_and_enroll_certificate
certr, chain, key, _ = self.obtain_certificate(domains)
File â/usr/lib/python3/dist-packages/certbot/client.pyâ, line 318, in obtain_certificate
self.config.allow_subset_of_names)
File â/usr/lib/python3/dist-packages/certbot/auth_handler.pyâ, line 81, in get_authorizations
self._respond(resp, best_effort)
File â/usr/lib/python3/dist-packages/certbot/auth_handler.pyâ, line 138, in _respond
self._poll_challenges(chall_update, best_effort)
File â/usr/lib/python3/dist-packages/certbot/auth_handler.pyâ, line 202, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. www.animesh.life (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://www.animesh.life/.well-known/acme-challenge/6zxC37U_32D_bBVdJrxAYvg5lOcCpwON_CnJjE8XI9c: Error getting validation data "
Here is my default file under "sites-available"
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/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name animesh.life www.animesh.life;
location / {
try_files $uri $uri/ /index.html;
}
location /hello/ {
proxy_pass http://127.0.0.1:3001;
}
# 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/php/php7.0-fpm.sock;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}