#1143091 nginx-block-ai-bots: Syntax error in conf.d/block-ai-bots.conf

#1143091#5
Date:
2026-07-30 10:31:32 UTC
From:
To:
# /etc/nginx/conf.d/block-ai-bots.conf

map $http_user_agent $block_ai_bots {
	default 0;
	~* "(@AI_BOTS@)" 1;
}


should be

# /etc/nginx/conf.d/block-ai-bots.conf

map $http_user_agent $block_ai_bots {
	default 0;
	~*(@AI_BOTS@) 1;
}


The space makes nginx fail to start.

Also, the quotes are not needed.

#1143091#10
Date:
2026-07-30 11:04:56 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ai.robots.txt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1143091@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Baumann <daniel@debian.org> (supplier of updated ai.robots.txt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 30 Jul 2026 12:49:44 +0200
Source: ai.robots.txt
Architecture: source
Version: 1.47+dfsg-2
Distribution: sid
Urgency: medium
Maintainer: Daniel Baumann <daniel@debian.org>
Changed-By: Daniel Baumann <daniel@debian.org>
Closes: 1143091
Changes:
 ai.robots.txt (1.47+dfsg-2) sid; urgency=medium
 .
   * Correcting syntax error in block-ai-bots.conf, thanks to Jérémy Lal
     <kapouer@melix.org> (Closes: #1143091).
Checksums-Sha1:
 be2b4b410a06aaaf616a31f3291955a3d1c4c7b6 1466 ai.robots.txt_1.47+dfsg-2.dsc
 1e82a050d5cf0f99d2e867ed8505ab965f76ed1e 4628 ai.robots.txt_1.47+dfsg-2.debian.tar.xz
 1ee1c2049e74ca3f0f7342fdcfa4ca08d0510e22 5662 ai.robots.txt_1.47+dfsg-2_amd64.buildinfo
Checksums-Sha256:
 3972f3f5942f019af9b310cd8b7dac12c3e3e0690210f6217a46f1b8d4523544 1466 ai.robots.txt_1.47+dfsg-2.dsc
 c8e1b28c7a8910444ab9fdddc9047ab4ab2808881c5288476b2753b16b380198 4628 ai.robots.txt_1.47+dfsg-2.debian.tar.xz
 029f1f1b7415031000704b739df0cf9c4e75f9ed39f08be8e2c6ac18f4834317 5662 ai.robots.txt_1.47+dfsg-2_amd64.buildinfo
Files:
 0c5e031333d8fda0207f271fae6266e8 1466 web optional ai.robots.txt_1.47+dfsg-2.dsc
 f677ee3f6cf1b1b8cbc44b13e1291fde 4628 web optional ai.robots.txt_1.47+dfsg-2.debian.tar.xz
 d3b567b90d45468c1654a0a690410dd3 5662 web optional ai.robots.txt_1.47+dfsg-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQmmGg4gLaoSj0ERgL7tPDoCoAiLwUCamsscAAKCRD7tPDoCoAi
LxLLAP4i79R+CPdB5Dt43qyRAx86OAGKEK/7Wsy8vU0b+2vWkAEAsHC93E5LaxyN
k+hp+qmqpA4xaGE3oc8k8SXhwRr/XwM=
=y7vo
-----END PGP SIGNATURE-----