Skip to content
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

Note about the Keep Alive Apache example #252

Closed
alrra opened this issue May 9, 2014 · 3 comments
Closed

Note about the Keep Alive Apache example #252

alrra opened this issue May 9, 2014 · 3 comments

Comments

@alrra
Copy link

alrra commented May 9, 2014

The Keep Alive Apache example is wrong, as it just sets the header, but that won't make the server do what is expected.

The correct way of doing it is through the KeepAlive, KeepAliveTimeout and MaxKeepAliveRequests Apache core directives.

These core directives won't work in the .htaccess file, however, Apache (v2.2.0+ at least):

  • has (should have) KeepAlive On by default

  • provides (should provide) default values for the KeepAliveTimeout and MaxKeepAliveRequests directives


So, if KeepAlive is set to Off, Apache not only won't do what is expected, but will also kinda overwrite (will append close to) the Connection header the user has set.

@djalmaaraujo
Copy link
Collaborator

@alrra Same here. I will take a look and reply to you. Is it possible to you create a pull-request with your considerations ?

@zenorocha
Copy link
Owner

Hey @alrra, thanks a lot for putting this together.

Although this improvement looks useful, I prefer to remove the Server section because people will start to send tips for other servers like nginx and so on (why Apache only?). Perhaps we should focus on front-end and keep these server tips to another guide.

@alrra
Copy link
Author

alrra commented May 20, 2014

I prefer to remove the Server section ... perhaps we should focus on front-end

@zenorocha SGTM. You should open an issue in that sense. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants