Re: Replacement of .htaccess with symlinks

"G. Branden Robinson" <[email protected]> Sat, 7 Mar 2026 16:33:18 -0600
Newsgroups gmane.comp.printing.groff.general
Message-ID <20260307223318.ujq5ropsrtjbmfgj@illithid>
[replying to message sent to bug-groff]

Hi Thérèse,

At 2026-03-07T14:51:07+0100, Thérèse Godefroy via bug-groff wrote:
> There are talks of switching the www.gnu.org web server from Apache to
> Nginx. The problem is that Nginx doesn't support .htaccess. So we need
> to replace the redirections that are now in /groff/manual/.htaccess
> with symlinks. An obsolete redirection of groff.es.html to groff.html
> could also be removed.
> 
> If you agree but don't have time to apply the attached patch, I will
> gladly do it.

Here's the diff:

Index: .symlinks
===================================================================
RCS file: /webcvs/groff/groff/.symlinks,v
retrieving revision 1.1
diff -U 2 -r1.1 .symlinks
--- .symlinks	28 Feb 2001 00:18:55 -0000	1.1
+++ .symlinks	7 Mar 2026 13:37:36 -0000
@@ -1,2 +1,7 @@
 groff.html index.html
-groff.html groff.es.html
+
+# Adapted from .htaccess.
+manual/groff.html.node                         manual/html_node
+manual/groff.html.node/Leaders.html            manual/groff.html.node/WACKYJUNK
+manual/groff.html.node/ms-Legacy-Features.html manual/groff.html.node/ms-Strings-and-Special-Characters.html
+manual/groff.html.node/Preprocessor-Intro.html manual/groff.html.node/preconv.html

I think I can take care of this.  I also think the only entry that needs
to remain is this one:

+manual/groff.html.node                         manual/html_node

The "WACKYJUNK" thing was a test.  The two after it _should_ be
fixed or made redundant by introduction of `@anchor`s new to the groff
1.24.0 version of our Texinfo manual, which I uploaded last weekend.

Err, checking up on it, that's only true of the first.  The second one,
"preconv", doesn't seem to me to have a great place to redirect to.
(There's a "pindex" entry for "preconv" that goes to the "Groff Options"
node early in the manual.)  It might be okay just to let stale links to
"manual/groff.html.node/preconv.html" 404 now.

I'll take a crack at it.  Thanks for the heads-up!

Regards,
Branden
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmmsp6YACgkQ0Z6cfXEm
bc6ZEg/9H4DHuxi81xAkdZWhO70zWku2HpabAI0Klz6s7/WBEIufmNi0BsAQZWk6
9CK8GvN90Je3hhmGDJpRKXZEg303s0yAy8VuSrrVmaFI61sjWa59nu7ITr4aZXM/
JcuVkupbelTeLG2i45ry7TNt8eDkxMsGEQmvtDHZ0q3dhot2RhXfD/853oiwetEf
nOZmiSWJqD/nYcJ9b7jAkZ2fcOJLdGG5B2Ziq5klS90++5c3IqK6ookFmIuU5wns
KVqY5m/9Z7lakzvXnJI7p22GrJ4xFR2hU3MLGhVrCdyBevGN9/Hu8eKQk54u6cuh
/AAuS949gkYxykRFZW6T/JIepyhUfKA9bF4/NYc6B3xa2wsQEv25jT6toTQmJVLV
yX2I1DvA9ywO/UDA097icEawCNns82xU6FpU+jCpIj0hoQG50Xhq5vJ4V9o36A1o
kQBxurciLMDCnqz8dritAJ/a6tnrLoobNtwCIBgaO1rHCZQPrO659kPsPNM/7kjn
l/UuNk+AkXFijYOjzFJNgvgOZQ4tCQHVlI/dTtVRzcphQZX1YLkUVcCMwLxRCtn5
9Ryz1PqmQZa7+Ry3/fDZdnnHrWjkCzidSM+1xvPlZwIbs+wbpS9iAhe8D46sucnf
TzDnby18lQHd8MY7sLQsCGCZbJAdiIOJysWpan1+Cc26bMDvc3s=
=nFPB
-----END PGP SIGNATURE-----