Hey Nick,

Nop definitely not saying it is documented as something that should work, 
didn't find anything stating it does, so thats why I am asking here to see if 
someone has an alternative. What else I found for the rest is mod_ext_filter 
can also do regex replaces but didn't get it to work with environment variables 
yet either so.

Cool, thanks! I will have a look at mod_line_edit.

Just so you guys have an idea of what I am trying to achieve if you were 
wondering:

- I have an application which generates static HTML pages, that are cached by a 
custom apache http module.
- I want to start implementing CSP 3 headers by using a nonce to put on all the 
inline script tags.

=> Use mod_unique_id to generate a random number as environment variable (the 
doubt I am having here so far is if mod_unique_id is random enough, because if 
I refresh the pages it seems that the id just changes marginally little)
=> This id is set as nonce on the Content-Security-Policy header
=> Regex to set this nonce on all the script tags

Greets,
Roy



> On 29 Dec 2017, at 22:28, Nick Kew <n...@apache.org> wrote:
> 
> On Fri, 29 Dec 2017 19:05:39 +0100
> Roy Teeuwen <r...@teeuwen.be> wrote:
> 
>> Hey all,
>> 
>> I am trying to use environment variables in mod substitute, but it
>> seems that this does not work.
> 
> Is it documented as something that should work?
> (Genuine question - I haven't checked).
> 
>>       Is there any to parse html responses
>> and regex replace something with an environment variable?
> 
> mod_line_edit supports environment variables with either
> string or regexp replacement.
> 
> --
> Nick Kew
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to