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 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

[users@httpd] Writing and debugging Apache modules on a macOS with preferably Docker containers.

2017-12-30 Thread Roy Teeuwen
Hey all, I was wondering if any of you have any guidelines on what is the easiest way to write Apache modules on a macOS? I currently only have experience in Java / C# but I would like to try out writing a custom module. My C experience is from 10 years ago when I helped IRCd daemon and IRC se

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

2017-12-30 Thread Roy Teeuwen
situation the nonce attribute would have to be already in the html from the application, with possibly a token to be able to match it. Greets, Roy > On 30 Dec 2017, at 01:36, Nick Kew wrote: > > On Fri, 29 Dec 2017 22:39:11 +0100 > Roy Teeuwen wrote: > >> - I have an applic

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

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

[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