• 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 463 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 (22.1K 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

  • Ways To Make Sure Your Online Course Outshine Others July 3, 2022
  • Will Smart Factories Become the New Assembly Line? July 2, 2022
  • The Cost of Doing Business as a Handyman July 1, 2022
  • Samsung Galaxy S22 Ultra: Long Term Review June 30, 2022
  • How to Make the Most of Your S Pen (S22 Ultra) June 29, 2022

About This Article

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

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

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

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

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