nginx icon indicating copy to clipboard operation
nginx copied to clipboard

Drupal Backup and Migrate restore path generates 404 in nginx

Open infojunkie opened this issue 2 years ago • 0 comments

The popular Drupal module Backup and Migrate has an option to save the backup files on the server, and to restore them from there.

The module generates a URL of the form /admin/config/development/backup_migrate/settings/destination/backups/private_files/restore/backup-2022-08-23T16-26-47.tar.gz to perform the restore functionality. It seems that the presence of the full filename in the URL confuses nginx to attempt to locate the static file, which fails and throws a 404.

Any suggestion to add a special case to the config to avoid this error?

infojunkie avatar Aug 24 '22 00:08 infojunkie