How to install Mod XSendFile in Apache2?

It’s hard to find information in Google how to install this particular module in Alma Linux.

its a module deprecated 11 years ago!

you need to find an alternative for apache 2.4, or possibly reproduce its functionality using a standard module like mod_rewrite.

No it was not “deprecated”. Unsupported maybe. No longer in development, yes. Deprecated means a command or interface that is being phased out, or eventually removed, and then you have to use “the new way” instead.

A module, plugin, or software that is no longer in development for 10 years is not automatically “deprecated”. It might work fine, and need no further development.