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

Re: [users@httpd] Problem with CGI script

2017-12-29 Thread Gillis J. de Nijs
DirectoryIndex contains a list of files to try, not a full path. My guess is that it's supposed to be DirectoryIndex index.cgi instead of the path. On Fri, Dec 29, 2017 at 11:05 AM, mahmood n wrote: > Hi, > > > > In one the www folders, I have an index.cgi which is a python script. > Problem is

[users@httpd] Problem with CGI script

2017-12-29 Thread mahmood n
Hi, In one the www folders, I have an index.cgi which is a python script. Problem is that, by visiting that url, the cgi script is not run and I tried a lot to find the problem. Still I have stuck at that. The content of the index.cgi is https://github.com/rocksclusters/roll-server/blob/master