• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

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