Re: [users@httpd] CSP nonces in apache (SOLVED)

2017-09-11 Thread Luis Speciale
Le 11/09/2017 à 17:12, Daniel Gruno a écrit : For those who wont to accept inline scripts and styles with a nonce according to the CSP directives. You must reinstall your apache server with lua support. In my Mac I had installed httpd2.4 with brew Open /usr/local/Homebrew/Library/Taps

Re: [users@httpd] CSP nonces in apache

2017-09-11 Thread Daniel Gruno
I'll top-post. You can't modify the headers with a filter, but you can change them before the filtering starts...I think The filter script starts with coroutine.yield(). before that, you can establish the nonce and set the header using either r.headers_out or the more robust r.err_headers_out tabl

Re: [users@httpd] CSP nonces in apache

2017-09-11 Thread Luis Speciale
Le 11/09/2017 à 12:02, Daniel Gruno a écrit : You could alternately use mod_lua as an output filter. LuaOutputFilter fixupNonce /path/to/nonce.lua nonce SetOutputFilter fixupNonce # or AddOutputFilterByType and then in nonce.lua, you'd have: function fixNonce(stype, str) if str:match("s

Re: [users@httpd] Configuration help - addhandler <> mod_proxy_fcgi

2017-09-11 Thread Hajo Locke
Hello, Am 11.09.2017 um 14:58 schrieb Eric Covener: On Mon, Sep 11, 2017 at 4:28 AM, Hajo Locke wrote: Hello List, currently i use classic mod_fastcgi (fastcgiexternalserver) with php-fpm, which is quite reliable. A disadvantage of this setup is, that not every response-header set by .htacces

Re: [users@httpd] Configuration help - addhandler <> mod_proxy_fcgi

2017-09-11 Thread Eric Covener
On Mon, Sep 11, 2017 at 4:28 AM, Hajo Locke wrote: > Hello List, > > currently i use classic mod_fastcgi (fastcgiexternalserver) with php-fpm, > which is quite reliable. > A disadvantage of this setup is, that not every response-header set by > .htaccess will really send to client. > Something lik

RE: [users@httpd] Request_URI and ErrorDocument interaction ?

2017-09-11 Thread Cordente Emmanuel
Thank you for the proposition, I tried it without success. I've used: RewriteCond %{ENV:REDIRECT_URL} ^(.+)$ RewriteRule ^ - [E=originalPath:%1] RewriteCond %{ENV:originalPath} ^$ RewriteRule ^ - [E=originalPath:%{REQUEST_URI}] ErrorDocument 404 /pagenotfound In the rewrite log I see something

Re: [users@httpd] CSP nonces in apache

2017-09-11 Thread Luis Speciale
Le 11/09/2017 à 12:02, Daniel Gruno a écrit : On 09/11/2017 11:51 AM, Luis Speciale wrote: Le 11/09/2017 à 11:38, Mitchell Krog Photography a écrit : As per the original article from Scott Helme that you intially referred to, you will need to generate a random string yourself. Something like th

Re: [users@httpd] CSP nonces in apache

2017-09-11 Thread Daniel Gruno
On 09/11/2017 11:51 AM, Luis Speciale wrote: > Le 11/09/2017 à 11:38, Mitchell Krog Photography a écrit : >> As per the original article from Scott Helme that you intially >> referred to, you will need to generate a random string yourself. >> Something like this might help you in the right directio

Re: [users@httpd] CSP nonces in apache

2017-09-11 Thread Luis Speciale
Le 11/09/2017 à 11:38, Mitchell Krog Photography a écrit : As per the original article from Scott Helme that you intially referred to, you will need to generate a random string yourself. Something like this might help you in the right direction - https://gist.github.com/earthgecko/3089509 I w

Re: [users@httpd] CSP nonces in apache

2017-09-11 Thread Mitchell Krog Photography
As per the original article from Scott Helme that you intially referred to, you will need to generate a random string yourself. Something like this might help you in the right direction -  https://gist.github.com/earthgecko/3089509 From: Luis Speciale Reply: users@httpd.apache.org , lspeci...@

Re: [users@httpd] CSP nonces in apache

2017-09-11 Thread Luis Speciale
Le 11/09/2017 à 10:59, Daniel Gruno a écrit : On 09/11/2017 10:48 AM, Luis Speciale wrote: Le 07/09/2017 à 20:57, Daniel Gruno a écrit : might be that you need to uppercase it to NUMBNONCE. After a week trying I'm beginning to think that it can't be done the way I thought. Is there a way (a

Re: [users@httpd] CSP nonces in apache

2017-09-11 Thread Daniel Gruno
On 09/11/2017 10:48 AM, Luis Speciale wrote: > Le 07/09/2017 à 20:57, Daniel Gruno a écrit : > >> >> might be that you need to uppercase it to NUMBNONCE. > > After a week trying I'm beginning to think that it can't be done the way > I thought. Is there a way (another, of course) to achieve this?

Re: [users@httpd] CSP nonces in apache

2017-09-11 Thread Luis Speciale
Le 07/09/2017 à 20:57, Daniel Gruno a écrit : might be that you need to uppercase it to NUMBNONCE. After a week trying I'm beginning to think that it can't be done the way I thought. Is there a way (another, of course) to achieve this? Luis

[users@httpd] Configuration help - addhandler <> mod_proxy_fcgi

2017-09-11 Thread Hajo Locke
Hello List, currently i use classic mod_fastcgi (fastcgiexternalserver) with php-fpm, which is quite reliable. A disadvantage of this setup is, that not every response-header set by .htaccess will really send to client. Something like this is the current setup:     AddHandler myphp-cgi .php