• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Apache HTTP/2 Settings (Module mod_http2)

By Abhishek Ghosh June 13, 2017 9:02 am Updated on June 13, 2017

Apache HTTP/2 Settings (Module mod_http2)

Advertisement

Previously we published guide on how to enable HTTP/2 on Apache, of course we published other guides like cache aware server push. mod_http2 Enables HTTP/2, has settings which are usually kept as default. In this guide we will talk around the possibilities to tweak Apache HTTP/2 settings aka optimise module mod_http2. mod_http2 module relies on libnghttp2 to provide the core http/2 engine and present is experimental. It is very important to understand that the directives can change behaviours from default which may not be suitable to test on a production server hosting serious live website.

Apache HTTP-2 Settings Module mod_http2
 

Apache HTTP/2 Settings : Optimize Module mod_http2

 

The first directive is known, it is used to activate HTTP/2 and used with mod_ssl block and virtual server block :

Vim
1
Protocols h2 http/1.1

The above settings make http/1.1 as first option, http/2 as second option. The below settings will work on server configuration file unless otherwise specified, some works on virtual host file as well.

Advertisement

---

HTTP/2 has a Direct Mode, and can be made on or off with :

Vim
1
2
H2Direct on
H2Direct off

Default settings is ON. Maximum number of active streams per HTTP/2 session can be adjusted with :

Vim
1
H2MaxSessionStreams 100

Default is 100. You can lower down to 50 or even 20. Obviously, the maximum number of seconds http/2 workers will remain idle until shut down that can be changed too :

Vim
1
H2MaxWorkerIdleSeconds 600

600 is default value, you can change to lower value like 20. We can change the maximum and minimum number of worker threads to use per child process :

Vim
1
2
H2MaxWorkers 20
H2MinWorkers 10

There is a security and cipher related settings to toggle security checks on HTTP/2 connections in TLS mode, which is by default kept to off and safe to keep to off :

Vim
1
H2ModernTLSOnly off

We can toggle HTTP/2 push on or off, default is on :

Vim
1
2
H2Push on
H2Push off

There is a H2PushPriority directive, which is important to force before or after, select type of thing :

Vim
1
2
3
4
5
6
H2PushPriority * After 16
H2PushPriority text/css Interleaved 256
H2PushPriority application/json Before
H2PushPriority application/json 32
H2PushPriority image/jpeg before
H2PushPriority text/css   interleaved

The directives to serialise HTTP/2 requests usually not good for performance (it falls back to http/1.1) :

Vim
1
2
H2SerializeHeaders on
H2SessionExtraFiles 10

We can set the maximum number of outgoing data bytes buffered in memory for an active streams with this directive :

Vim
1
H2StreamMaxMemSize 65536

Above is default value, you can change to higher value like 128000.

We have warm up and cool down directive :

Vim
1
2
H2TLSCoolDownSecs 0
H2TLSWarmUpSize 0

The above warm up and cool down directives are what Google’s peoples say TLS record optimisation in context of Nginx.

We can control toggle of the usage of the HTTP/1.1 upgrade method for switching to HTTP/2 :

Vim
1
2
H2Upgrade on
H2Upgrade off

We can set the size of the window for flow control from client to server to limit the amount of data the server has to buffer. This affects only request bodies :

Vim
1
H2WindowSize 128000

These are what officially known.

Tagged With http2 settings , Apache httpd mod_http2 H2MaxWorkers , apache settings http 2 , H2ModernTLSOnly off , how to configure H2Push off , http2_module apache , mod http2 , mod_http2

This Article Has Been Shared 197 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Apache HTTP/2 Settings (Module mod_http2)

  • Cloud Computing and its Importance in Education and Research

    Cloud Computing though is intended for Business market, does have lot of opportunities from Basic Educational field to top notch research.

  • Using Rackspace Database as a Service to Boost WordPress

    Using Rackspace Database as a Service can boost WordPress hosted on unmanaged Servers either internal or external at a low cost simply you are billed for usage.

  • On Demand in Computing : What On Demand Means ?

    On Demand in Computing, specially in Cloud Computing this word on demand is frequently used. On Demand has more than its literal meaning.

  • Steaming iTunes Music Server on Cloud Platform

    Steaming iTunes Music Server on Cloud Platform can be setup without paying for the dedicated hardware. Here is the detailed ways of the possible solution.

  • Reduce Time To First Byte (TTFB) on Cloud Server

    It is Possible To Reduce Time To First Byte (TTFB) on Cloud Server if You Know Which Components Determines This Time To First Byte (TTFB) .

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Apache HTTP/2 Settings (Module mod_http2)," in The Customize Windows, June 13, 2017, March 29, 2023, https://thecustomizewindows.com/2017/06/apache-http2-settings-module-mod_http2/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT