-1

I've tested my website with mxtoolbox.com and got this message:

Result: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

I've googled around but I've only found Microsoft related answers that have nothing to do with my webserver. My server is Linux based Centos 6.6 with Nginx 1.8.0 webserver.

Here is the test: http://mxtoolbox.com/domain/poxi.net/?source=findmonitors

What have I tried?

  • I've tried upgrading Nginx from 1.7.12 to 1.8.0 and it didn't help.
  • I've tried changing Nginx config by commenting almost everything, but it didn't help.

Does anyone have any idea what this error means and how to fix it?

Thanks!

1 Answer 1

1

I've found the problem. I was hardening webserver and followed one tutorial which suggested changing nginx source code.

It suggested to change:

static char ngx_http_server_string[] = "Server: nginx" CRLF;
static char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF;

to somethig else.

I changed it to:

static char ngx_http_server_string[] = "WebServer" CRLF;
static char ngx_http_server_full_string[] = "WebServer" CRLF;

Now I've changed it back to original and recompiled. Error is gone now.

2
  • 1
    What a stupid tutorial. There's no good reason to do that. May 5, 2015 at 8:19
  • I will slowly learn that I should not trust every tutorial on the internet :)
    – Paxxil
    May 5, 2015 at 8:49

Not the answer you're looking for? Browse other questions tagged .