Deafult Plesk Page does not work via HTTPS if Nginx is enabled as proxy server.

Refers to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:58:17 UTC

Modified:

2016-12-21 19:39:45 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Deafult Plesk Page does not work via HTTPS if Nginx is enabled as proxy server.

Symptoms

Deafult Plesk Page does not work via https if Nginx is enabled as proxy server.

https://123.124.125.126/ shows domain content instead of Plesk default page.

Cause

This issue has been considered as software issue #PPPM-854 and was fixed in Plesk 12.0.18.

Temporary workaround

  1. Create a config backup

    cp /etc/nginx/plesk.conf.d/server.conf /etc/nginx/plesk.conf.d/server.conf.orig
  2. Add the following directives at the end of /etc/nginx/plesk.conf.d/server.conf nginx configuration file:

    server {
    listen 123.124.125.126:443 ssl;
    ssl on;
    ssl_certificate /usr/local/psa/var/certificates/cert-wkhbkb;
    ssl_certificate_key /usr/local/psa/var/certificates/cert-wkhbkb;
    ssl_session_timeout 5m;

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

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

Where "123.124.125.126" is IP address of your server.

  1. Apply nginx configuration:
    [root@]# /etc/init.d/nginx reload
    Reloading nginx: [ OK ]

Note: /etc/nginx/plesk.conf.d/server.conf can be overwritten.

Have more questions? Submit a request
Please sign in to leave a comment.