NGINX 404 not found but file exists

Solution 1:

That should be alias /var/www/fileUpload/html; otherwise Nginx is looking for the file in /var/www/fileUpload/html/upload/index.html. See this document for details.

For example:

location /upload {
    alias /var/www/fileUpload/html;
}