On 07/06/2025 18:39, Bastien Guerry wrote:
Max Nikulin writes:
location /worg/ {
rewrite ^(/worg)(/org-contrib/org-annotation-helper\.)(html|org)
$1/archive$2$3 permanent;
}
None, done, and I also updated
https://git.sr.ht/~bzg/worg/tree/master/item/nginx.conf#L13
Can you confirm it works as you expect?
Unfortunately my expectations were different. Files from /archive are
not exported due to
0e6cdacc 2022-12-29 16:02:15 +0100
Bastien: publish.sh: never publish the archive/ subdirectory
So available .html files were published earlier
curl -I https://orgmode.org/worg/archive/index.org
last-modified: Tue, 10 Jun 2025 00:00:35 GMT
curl -I https://orgmode.org/worg/archive/index.html
last-modified: Sun, 11 Dec 2022 10:07:39 GMT
curl -I
https://orgmode.org/worg/archive/org-contrib/org-annotation-helper.org
last-modified: Tue, 10 Jun 2025 00:00:35 GMT
curl -I
https://orgmode.org/worg/archive/org-contrib/org-annotation-helper.html
HTTP/2 404
If archive is intentionally excluded from export then the file should be
moved back and the redirection should be dropped. Moreover, existing
worg/archive/**.html files should be removed from the web server
(currently rsync from .build.yml just adds new files without removing
anything).