• 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
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)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Steps To Install Nginx Plus on Ubuntu Server (HP Cloud)

    Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features.

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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
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