Pr_end_of_file_error

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. https://crt.sh/?q=1trolley.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: 1trolley.com

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 1trolley.com. 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 - https://check-your-website.server-daten.de/?q=1trolley.com

Domainname Http-Status redirect Sec. G
http://1trolley.com/ 3.18.103.232 301 https://1trolley.com/ Html is minified: 107,78 % 0.350 A
http://www.1trolley.com/ 3.18.103.232 301 https://www.1trolley.com/ Html is minified: 107,78 % 0.400 A
https://1trolley.com/ 3.18.103.232 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
https://www.1trolley.com/ 3.18.103.232 -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

CN=1trolley.com
	05.05.2020
	03.08.2020
expires in 80 days	1trolley.com, www.1trolley.com - 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 = www.1trolley.com) {
return 301 https://$host$request_uri;
} # managed by Certbot

if ($host = 1trolley.com) {
    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.