- Plesk for Linux
Cannot install Let's Encrypt certificate to secure Plesk:
PLESK_ERROR: Type: urn:acme:error:unauthorized
Detail: Invalid response from http://server.example.com/.well-known/acme-challenge/NynqSGY586TjcNIliCFP1uu31J9vdI_uxfrPlXQx5NY: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>404 Not Found</title>
Attempt to open http://server.example.com/ results in opening of webmail login page
The nginx configuration file
/etc/nginx/conf.d/zz010_psa_nginx.conf did not have the following include:
CONFIG_TEXT: include /etc/nginx/plesk.conf.d/server.conf;
Nginx configuration files are misconfigured or broken.
- Connect to the server via SSH
- Rebuild nginx configuration files by disabling/enabling it:
# /usr/local/psa/admin/bin/nginxmng -d
# /usr/local/psa/admin/bin/nginxmng -e
Note: Note that in case of big number of domain(> 300) re-enabling of the nginx support can cause significant downtime of the domains. Execute it during maintenance hours.