• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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