Sven A.
New Pleskian
Hi community,
I'm running a server with Plesk 12.5.30 and try to use the Lets encrypt extension.
I created and installed a certificate for a domain after the instructions found everywhere in the web.
No problem so far.
But I 'm unable to run https://mydomain.tld.
In the browser it says ERR_CONNECTION_RESET and the error logs of nginx (I'm using apache2 with nginx for reverse proxy.) say:
no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking, client: xx.xxx.x.xxx, server: xx.xxx.xxx.xxx:443
I found several threads here and elsewhere, but nothing works.
My nginx config seems fine, as far as I know.
Everything is pretty standard or default. I changed nothing.
Any ideas what could go wrong?
Thanks.
I'm running a server with Plesk 12.5.30 and try to use the Lets encrypt extension.
I created and installed a certificate for a domain after the instructions found everywhere in the web.
No problem so far.
But I 'm unable to run https://mydomain.tld.
In the browser it says ERR_CONNECTION_RESET and the error logs of nginx (I'm using apache2 with nginx for reverse proxy.) say:
no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking, client: xx.xxx.x.xxx, server: xx.xxx.xxx.xxx:443
I found several threads here and elsewhere, but nothing works.
My nginx config seems fine, as far as I know.
Code:
server {
listen xx.xxx.xxx.xxx:443 ssl;
server_name mydomain.tld;
server_name www.mydomain.tld;
server_name ipv4.mydomain.tld;
ssl_certificate /opt/psa/var/certificates/cert-UI2T1H;
ssl_certificate_key /opt/psa/var/certificates/cert-UI2T1H;
ssl_client_certificate /opt/psa/var/certificates/cert-9GmfWB;
client_max_body_size 128m;
proxy_read_timeout 600;
root "/var/www/vhosts/mydomain.tld/httpdocs";
access_log "/var/www/vhosts/system/mydomain.tld/logs/proxy_access_ssl_log";
error_log "/var/www/vhosts/system/mydomain.tld/logs/proxy_error_log";
location / {
proxy_pass https://xx.xxx.xxx.xxx:7081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Accel-Internal /internal-nginx-static-location;
access_log off;
}
location /internal-nginx-static-location/ {
alias /var/www/vhosts/mydomain.tld/httpdocs/;
add_header X-Powered-By PleskLin;
internal;
}
}
server {
listen xx.xxx.xxx.xxx:80;
server_name mydomain.tld;
server_name www.mydomain.tld;
server_name ipv4.mydomain.tld;
client_max_body_size 128m;
proxy_read_timeout 600;
root "/var/www/vhosts/mydomain.tld/httpdocs";
access_log "/var/www/vhosts/system/mydomain.tld/logs/proxy_access_log";
error_log "/var/www/vhosts/system/mydomain.tld/logs/proxy_error_log";
location / {
proxy_pass http://xx.xxx.xxx.xxx:7080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Accel-Internal /internal-nginx-static-location;
access_log off;
}
location /internal-nginx-static-location/ {
alias /var/www/vhosts/mydomain.tld/httpdocs/;
add_header X-Powered-By PleskLin;
internal;
}
}
Everything is pretty standard or default. I changed nothing.
Any ideas what could go wrong?
Thanks.