• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Nginx: no data received

Vincent86

New Pleskian
Hi, i have installed today Reverse Proxy Nginx on Plesk 12. After have activing Nginx, website show "no data received".

Nginx error.log:

PHP:
no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking

-----

conflicting server name

There is a fix to resolve this issue?

Thanks
 
Hi Vincent86,

please try to re-enable the SSL - support for that domain, to solve the issue "no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking".

"conflicting server name" is just a warning, as you can see in the error-log as well. It results from a standard Plesk certificate. You can solve that issue, by creating your very own self-signed certificate and replaced it with the standard one.

If you see "no data received" with your browser, this can as well be due to caching. Please try to delete your browser cache and try again to open the site with your browser.
 
Hi, for example this is the nginx.conf of website:

Code:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

server {
listen xx.xx.xx.xx:80;

server_name website.it;
server_name www.website.it;
server_name ipv4.website.it;

client_max_body_size 128m;

proxy_read_timeout 1200;

root "/var/www/vhosts/website.it/httpdocs";
access_log "/var/www/vhosts/system/website.it/logs/proxy_access_log";
error_log "/var/www/vhosts/system/website.it/logs/proxy_error_log";

if ($host ~* ^website.it$) {
rewrite ^(.*)$ http://www.website.it$1 permanent;
}

location / {
proxy_pass http://xx.xx.xx.xx: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/website.it/httpdocs/;
add_header X-Powered-By PleskLin;
internal;
}

}
---
/etc/nginx/plesk.conf.d/server.conf

Code:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

include "/etc/nginx/plesk.conf.d/ip_default/*.conf";

server {
    listen xx.xx.xx.xx:80;

    location / {
        proxy_pass http://xx.xx.xx.xx: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;
    }
}

server {
    listen xx.xx.xx.xx:443 ssl;

    ssl_certificate             /usr/local/psa/var/certificates/cert7YVLkXL;
    ssl_certificate_key         /usr/local/psa/var/certificates/cert7YVLkXL;
    ssl_session_timeout         5m;

    ssl_protocols               SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers                 HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers   on;

    location / {
        proxy_pass https://xx.xx.xx.xx: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;
    }
}

If you need other file or logs, please tell me :)
 
Back
Top