Re: [users@httpd] Using environment variables in mod_substitute

2018-01-02 Thread Roy Teeuwen
Hey all, Just as heads up, I did try your mod_line_edit @Nick for this purpose, and that one does work easily in Apache 2.2: LoadModule line_edit_modulemodules/mod_line_edit.so LERewriteRule "

Re: [users@httpd] Using environment variables in mod_substitute

2017-12-31 Thread Luis Speciale
Le 31/12/2017 à 17:11, Eric Covener a écrit : On Sun, Dec 31, 2017 at 10:59 AM, Luis Speciale wrote: I will be happy to know if you find a solution, I was trying to do the same thing but after a certain time I gived up. Thanks in advance. I just committed something for this to trunk, I think

Re: [users@httpd] Using environment variables in mod_substitute

2017-12-31 Thread Roy Teeuwen
Hey Eric, I was planning to see if I could achieve the same thing, thats why I made the other thread named "Writing and debugging Apache modules on a macOS with preferably Docker containers." ;). Sadly enough we are still on Redhat 6 => Apache 2.2. We will hopefully upgrade to Redhat 7 and Apac

Re: [users@httpd] Using environment variables in mod_substitute

2017-12-31 Thread Eric Covener
On Sun, Dec 31, 2017 at 10:59 AM, Luis Speciale wrote: > I will be happy to know if you find a solution, I was trying to do the same > thing but after a certain time I gived up. > > Thanks in advance. I just committed something for this to trunk, I think the patch would work on 2.4: http://svn.ap

Re: [users@httpd] Using environment variables in mod_substitute

2017-12-31 Thread Luis Speciale
I will be happy to know if you find a solution, I was trying to do the same thing but after a certain time I gived up. Thanks in advance. Luis And happy everything - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org

Re: [users@httpd] Using environment variables in mod_substitute

2017-12-30 Thread Roy Teeuwen
Hey Nick, Hmm if I read the documentation, then proxy_html is specifically meant for rewriting urls when doing a proxy, but I can indeed see how you could make it work as a sort of hack though: ProxyHTMLInterp On ProxyHTMLLinks script nonce ProxyHTMLURLMap token ${UNIQUE_ID} V In this situatio

Re: [users@httpd] Using environment variables in mod_substitute

2017-12-29 Thread Nick Kew
On Fri, 29 Dec 2017 22:39:11 +0100 Roy Teeuwen wrote: > - 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. If the job is to rewrite so

Re: [users@httpd] Using environment variables in mod_substitute

2017-12-29 Thread Roy Teeuwen
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 wit

Re: [users@httpd] Using environment variables in mod_substitute

2017-12-29 Thread Nick Kew
On Fri, 29 Dec 2017 19:05:39 +0100 Roy Teeuwen 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 r

[users@httpd] Using environment variables in mod_substitute

2017-12-29 Thread Roy Teeuwen
Hey all, I am trying to use environment variables in mod substitute, but it seems that this does not work. Is there any to parse html responses and regex replace something with an environment variable? I had found this previous mailing list but they were able to work around the issue without givi