• 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.

Issue a new subdomain sometimes redirect to main domain

dblii

New Pleskian
Hi a new subdomain sometimes redirect to main domain. any other had in the past similar problem? and some other times the page load normally and if i reload i get this page Screenshot this happens very offen each second reload.

Thanks in advance
 
This can be caused by on-the-fly generation of images or other static files. On the first request, Nginx forwards it to Apache, and an .htaccess rule converts the seemingly static file request to a script call. The script generates the content, returns it to the browser and everything is fine. Now, on furthe requests, Nginx cache remembers that it has served that static file before and now tries to serve the content from cache. However, this is not a physical static file, so there is no cached content and the physical location of the file cannot be accessed (because there is no physical location). This can lead to the 404 not found error.

You can try to disable Nginx caching and also set Nginx to exclude static file extensions for the files that are causing the not-found-error.
 
Back
Top