On Sat, Nov 01, 2025 at 04:18:23PM +0100, Pierre Pilou wrote:
> Would be interesting to merge then in the module of httpd ?

Hello

I had a look at your two modules, and my first impression is that
they partially overlap existing ones. I only had a quick look, do
not hesistate to tell me if I am wrong. 

mod_replace seems to do the same functionnality as mod_substiture
with the n flag, but it adds environement variable substitution.
Did you consider extending mod_substitute? You could add a flag
so that the RHS is treated as an apache expression, which would
allox environment variable substitution, and more:
https://httpd.apache.org/docs/current/en/expr.html

mod_random seems to extend mod_unique_id, by making the random
data more random (using apr_generate_random_bytes instead of
ap_random_insecure_bytes) and with a configurable length. Here
again, you could extend mod_unique_id, by adding directives so
that the administrator can set true or insecure randomness, 
chose generated data length, and environment variable name.


-- 
Emmanuel Dreyfus
[email protected]

Reply via email to