• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Problem with plesk site preview

igorinpero

New Pleskian
I have created a subscription. (Many)
In case I click on the preview of the page in it (scren bellow).
1614260359244.png


I am getting the following error.
1614260438539.png

This button redirects me to the following address:
http://46.xxx.xxx.xxx/plesk-site-preview/xxxx.pl/https/46.xxx.xxx.xxx/

If I replace the link with http instead of https, everything is displayed correctly.
http://46.xxx.xxx.xxx/plesk-site-preview/xxxx.pl/http/46.xxx.xxx.xxx/

How can I fix this problem?
 
WarningAH01909: xxx.pl:443:0 server certificate does NOT include an ID which matches the server name
could this erorr be the reason?
 
@igorinpero SSL won't ever work correctly on an IP address, because your host won't have a matching certificate. So it is actually correct that the SSL connection won't be established.

But I think that the 502 issue is an additional issue. Nginx should still accept the input from Apache. This could be a bug that it does not. I am not using your preview method though, I am only using the "Quick Preview on an external domain name" and have not seen the 502 in this case yet.
 
@igorinpero SSL won't ever work correctly on an IP address, because your host won't have a matching certificate. So it is actually correct that the SSL connection won't be established.

But I think that the 502 issue is an additional issue. Nginx should still accept the input from Apache. This could be a bug that it does not. I am not using your preview method though, I am only using the "Quick Preview on an external domain name" and have not seen the 502 in this case yet.
Can I use the global domain as a preview? If so, how to do it.

Assuming I have the domain mydomain.eu
I log in to the plesk panel via mydomain.eu:8443

I want the site preview to be on the domain mydomain.eu or preview.mydomain.eu (or something similar)
 
Tools & Settings > Website Preview Settings > Quick Preview on an external domain name
Enter the hostname, then add a wildcard entry like this in your DNS for that domain:
A record name: *.ip-address-with-dashes
A record value: The IP address of your server
Example for record name:
*.123-45-12-234
 
Tools & Settings > Website Preview Settings > Quick Preview on an external domain name
Enter the hostname, then add a wildcard entry like this in your DNS for that domain:
A record name: *.ip-address-with-dashes
A record value: The IP address of your server
Example for record name:
*.123-45-12-234
Thanks. I was doing same as you and it turned out I have to wait a few minutes before it takes effect.
 
Yes, because the server needs to reload the configuration files. This happens only after the server restart interval has expired. It is the correct and expected behavior.
 
Back
Top