Keep_alive.conf kills sites

When I create a keep_alive.conf file with
keepalive 10;
keepalive_timeout 10s;
keepalive_requests 100;

I get the following error accessing anything including simply localhost
# This page isn’t working

**localhost**  didn’t send any data.

ERR_EMPTY_RESPONSE