EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09959


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

RE: [EP-tech] Eprints and .well-known


CAUTION: This e-mail originated outside the University of Southampton.

Hi Yuri,
Yes - by default (as mentioned in those Additional Notes), EPrints will reject requests containing "/.".

If it's a static file that you need to serve, you should just be able to replace the 'acme-challenge' part in that trigger with the URL to your file.
As this trigger gets called early in the Apache stack, EPrints possibly won't copy the file from e.g. archives/ARCHVIEID/cfg/static/.well-known/file to archives/ARCHVIEID/html/static/.well-known/file - so you might need to do this manually.

If you need to generate content for the .well-known URL dynamically, I can provide some suggestions to create a handler.

Cheers,
John

-----Original Message-----
From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Yuri
Sent: 11 February 2025 16:35
To: EPrints.org Technical List <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Eprints and .well-known

CAUTION: External Message. Use caution opening links and attachments.

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi!

  I'm unable to make .well-know work in Eprints. I've changed generate_static to allow it, the directory is created under <repo>/cfg/lang/en/ but accessing it via url /.well-known/afile does not work. Do I need Additional Notes in
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FSetting_up_HTTPS_using_Let%2527s_Encrypt&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Cb3bfd6b6af29425c6fdf08dd4abbb9cd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638748892322116397%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=hX8%2FfbjNElNTdc8rm251tuRq95kjJhP9Z2Xi%2F2zk9gA%3D&reserved=0 ?

  thanks!