Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Apache server
SuPHP (php as CGI?)

When I look through phpinfo, I see Keep-Alive as being active/on.
When I use tools like RedBot, I see Connection: Close

If I set Headers (via htaccess or php) as
Connection: Keep-Alive
the response I see is
Connection: Keep-Alive, close

I've scanned through all my php files - nothing seems to be setting the Connection: to "close".

So where is it coming from,
and how do I remove it, or replace it with Keep-Alive?

I've tried to unset via htaccess.
I've tried to set empty header via php.
Neither method has worked. (Yes, I've read it's a config thing - but it is "on" ... so why am I seeing "close" ???)

share|improve this question
    
What's the client sending? –  Shane Madden Aug 1 '12 at 1:49

1 Answer 1

up vote 0 down vote accepted

Apache won't keepalive for a CGI request - although it's technically possible to do this, it doesn't really make a lot of sense.

Do you really need suPHP? CGI performance sucks big time.

share|improve this answer
    
No choice, as that's what the host runs as on the shared platform. –  theclueless1 Aug 1 '12 at 9:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.