Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

My web server is (include version): nginx

The operating system my web server runs on is (include version): Ubuntu 18.04

My hosting provider, if applicable, is: AWS

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I have installed let’s encrypt a few months ago, and recenlty i’ve started to get An error occurred during a connection to PR_END_OF_FILE_ERROR, and the error happen suddenly but if i run certbot renew --dry-run the site work normally for a few days.
I’ve rung nginx -t and the result

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

How can i fix this ??What may be the error ??

Hi @AhmedAliIbrahim

normally, that error says, the TCP connection is interrupted.

But checking your domain there is a wrong configuration you should fix -

Domainname Http-Status redirect Sec. G 301 Html is minified: 107,78 % 0.350 A 301 Html is minified: 107,78 % 0.400 A GZip used - 28573 / 84347 - 66,12 % Inline-JavaScript (∑/total): 9/1123 Inline-CSS (∑/total): 0/0 200 Html is minified: 116,84 % 5.794 I -2 3.104 V
ConnectFailure - Unable to connect to the remote server

http has a redirect to https, that’s good.

But only the non-www version works, the www version doesn’t answer.

Your certificate
expires in 80 days, - 2 entries

has both domain names.

Add a working port 443 vHost with the www or a second server_name, so https + www works.

but i have both

server {
if ($host = {
return 301 https://$host$request_uri;
} # managed by Certbot

if ($host = {
    return 301 https://$host$request_uri;
} # managed by Certbot


is there other modification should i do?

That’s your port 80, there the redirect is visible, see the output.

But port 443 doesn’t answer.

May be a not configured webserver. May be a blocking firewall or a missing router port forward.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.