Site preview doesn't work on Plesk server: Error 404 Not Found

Started by mahesh, Jul 24, 2024, 07:42 AM

Previous topic - Next topic

mahesh

Symptoms
  • Unable to open Site Preview, it redirects to another URL with one of the following errors:
HTTP Error 404.4 - Not Found
The resource you are looking for does not have a handler associated with it.
Error Code: 0x8007007b
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Error Code: 0x80070002
  • When Default Quick Preview is set in Tools & Settings > Website Preview the following error is shown in Plesk UI:
ERR [panel] websrvmng failed: Site sitepreview doesn't exist
at (WebServerMap::get line 189)
at startHosting(sitepreview)(WebServerAdapter::startHosting line 772)
at execute console command --start-vhost(vconsoleapp::start line 122)
at execute "C:\Program Files (x86)\Plesk\admin\bin64\websrvmng" --start-vhost "--vhostname=sitepreview"(vconsoleapp::run line 139)
(Error code 1)


Cause
Site preview misconfiguration.

Resolution
  • Connect to the server via RDP.
  • Open Windows Command Prompt (CMD) as Administrator.
  • Reconfigure site preview using the following command:

c:\>"%plesk_cli%\repair.exe" --reconfigure-site-preview