• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question NGINX 404 Problem since about July 27th 2017

Floezen

Basic Pleskian
Hi,

I had configured nginx about 1 or 2 years ago with

Code:
#Leverage Browser caching
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires 30d;
    log_not_found off;
}

Since about 27th of July static files of one directory are not served anymore with that configuration:

404 Not Found
nginx

I did not change any configuration, but maybe some updated changed something.

I also could not find out the difference to other directories, but content of other directories is served.

So
/var/www/vhosts/mydomain.tld/httpdocs/files/test.jpg
is not served, but
/var/www/vhosts/mydomain.tld/httpdocs/test/test.jpg
is served.

The proxy_error_log shows:

Code:
2017/08/17 22:38:35 [error] 27305#0: *14973507 open() "/var/www/vhosts/mydomain.tld/httpdocs/internal-nginx-static-location/files/test.jpg" failed (2: No such file or directory), client: 78.51.220.39, server: mydomain.tld, request: "GET /files/test.jpg HTTP/2.0", upstream: "https://37.61.xxx.xxx:7081/files/test.jpg", host: "www.mydomain.tld"

So maybe this error has to do with this not existing directory "internal-nginx-static-location", but I have no idea how and where to fix this problem...

Any suggestions?

Thanx
Flözen
 
It looks like that you have custom nginxDomainVirtualHost.php template where this "internal-nginx-static-location" is specified. Please check it and remove custom vhost template.
 
Back
Top