Nginx - "encountered end of file" ..?


My settings don’t seem to be working. I’ve followed the instructions to generate the LE pem files etc for a few domains. And then also ran the command for additional security:

sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048

(Removed private server details as item is solved.)

Also: Reading on Stack Overflow etc, I’m surprised the error message says that ssl_certificate is not defined, because each server block has those lines.

And I checked, these files all exist. Is there some specific permission that’s needed on them? They seem to be 777.

Most of the HTTPS server blocks define certificates. Some of them don't, which makes Nginx unhappy in general.

Also, this may be a copy and paste error, but one server block seems to contain the words "SSL settings" (probably a comment with a missing #), which would also be bad somehow probably.

Edit: For example, this block:


Thank you so much. Wow, much ado about a typos. It’s late here…thank you thank you!

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