Steps to reproduce:

  1. Add a new verification
  2. Select custom engine
  3. Upload a verification file
  4. Name the file with a .txt extension

Result:
404 error when visiting the resulting verification page. Site is hosted on Acquia, 404 is from nginx, not from the site.

Additional information:
Edited the name of the file to end in .html and the verification page worked as expected. It appears that the filename must end in .html.

Comments

John Carbone created an issue. See original summary.

lisotton’s picture

Hi,
I tested it locally and I couldn't reproduce it. Is this error happening only in Acquia environment? If so, you should contact Acquia support, because maybe some rule in Load Balancers could being applied and blocking this request.

Best regards,

Leandro L. Isotton

rimen’s picture

I think the reason is drupal_fast_404() enabled in settings.php

kreynen’s picture

Status: Active » Closed (works as designed)

This is specific to the hosting environment based on the file suffix handling and is not an issue that can be resolved by the changes to the project's code.