-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
header already sent while sending response to client #41
Comments
As a follow-up. This error goes away if pagespeed is disabled. The error is happening with pagespeed loaded My test was using pagespeed with core filters enabled https://groups.google.com/forum/#!topic/ngx-pagespeed-discuss/YzMchMNSBbU says
|
Hi @AnoopAlias, based on quoted logs, libmodsecurity is trying to deny request due to some matching in response body. Currently this does not work, and we have corresponding test marked as "TODO" here: https://github.com/SpiderLabs/ModSecurity-nginx/blob/master/tests/modsecurity-response-body.t |
Hi, We are also getting the same problem header already sent while sending response to client. 1447 header already sent while sending response to client, client: 122,x,x,x, server: xyz.co.in, Due to this getting bad gateway. nginx -V ModSecurity build version : 030000051 Kindly suggest how we can solve the this issue. |
Hi @defanator Please update. |
@zimmerle - would be great if v3 can work fine with PageSpeed as this module is in widespread use |
This problem solved in commit 2dc1f7d |
@dennus Thanks, Now i need to recompile the same to get the benefit. Exp :- cd modsecurity-2.9.2 |
@vipulshop this fix aplly to modsecurity 3, not for 2.9,2 |
Can i follow the below mention link :- for modsecurity 3 https://github.com/SpiderLabs/ModSecurity/wiki/Compilation-recipes#centos-7-minimal |
@vipulshop, yes |
Dear Dennus, After using the latest modsecurity still we are getting (header already sent while sending response to client) the below error. 2018/03/22 13:38:33 [alert] 17057#0: *9 header already sent while sending response to client, client: 125.63.93.130, server: test-beta.xyz.com, request: "GET /test/ HTTP/1.1", upstream: "http://192.168.123.81:80/retailer/", host: "test-beta.xyz.com", referrer: "https://test-beta.xyz.com/test/ nginx version: nginx/1.12.2 git clone https://github.com/SpiderLabs/ModSecurity nginx file location /test {
Quick response will be really appreciated. Thanks |
@vipulshop can you try out applying patch #84 and let us know of the results? Thanks. |
I tested it out, I'm not seeing protocol errors any longer but "403 - forbidden", will keep testing though. |
Okay, for some reason new Chrome is making some requests with HTTP/0.9 (that's why the 403's), but with |
@Avamander , I had created a new issue where all details are persist and you can easily reproduce the issue. Kindly go through the below mention link . |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Is this issue fixed in v3/master ? |
@tanvir-retailai: no, that is an issue on the connector not on the libModSecurity. |
+1. I also use ModSecurity with PageSpeed. With RESPONSE-952-DATA-LEAKAGES-JAVA.conf and RESPONSE-953-DATA-LEAKAGES-PHP.conf disabled, it works fine (as mentioned in #93) |
It also happens with
ModSecurity-nginx v1.0.3 |
I think issue #14 is not fixed
I am getting this error
I was trying to do a ab benchmark which is flooding audit log with
And the nginx error log is filled with
The text was updated successfully, but these errors were encountered: