How to enable http2

Hi John,

yes, it seems there is some bug or I am doing something wrong. Changing over to Event MPM, I cannot save my web server options settings and there is an error saying “maxclient input is required”. But maxclients (now Max Request Workers) should be calculated automatically, but it isn’t.

Here’s what I came up with:

Server Limit 128
Threads Per Child 16
Max Request Workers (should be 2048)
Start Servers 4
Min Spare Threads 1024
Max Spare Threads 2048
Max Requests per Child 0
Timeout 60
Keepalive on
Keepalive Requests (max) 500
Keepalive Timeout 2

I might have fixed it myself by simply adding this to http.conf

event MPM

StartServers: initial number of server processes to start

MaxRequestWorkers: maximum number of simultaneous client connections

MinSpareThreads: minimum number of worker threads which are kept spare

MaxSpareThreads: maximum number of worker threads which are kept spare

ThreadsPerChild: constant number of worker threads in each server process

MaxConnectionsPerChild: maximum number of requests a server process serves

<IfModule event.c>
ServerLimit 128
StartServers 4
MaxRequestWorkers 2048
MinSpareThreads 1024
MaxSpareThreads 2048
ThreadsPerChild 16
MaxConnectionsPerChild 0
</IfModule>

I will report back, if IW tells me differently

With regards to determining the best/correct values for Apache, I found this article to be the best of the bunch that I’ve read so far:

Just as an update, Jenna informed me that these are the default values (just in case anybody is also missing the entry and wants to stay on the safe side):

event MPM

<IfModule event.c>
ServerLimit 20
ThreadsPerChild 25
MaxRequestWorkers 500
StartServers 3
MinSpareThreads 75
MaxSpareThreads 250
ThreadLimit 32
MaxConnectionsPerChild 8192
MaxKeepAliveRequests 100
KeepAliveTimeout 5
</IfModule>

I currently have my site hosted in Azure, as a Web App. So far Http/2 support is none. As I used to check on https://http2.co/ what HTTP protocol my server is using. My concern is how can I future proof my app development so when Http/2 comes, I can start embracing it immediately? Will it be possible to provide a fallback to Http/1.1? What other considerations should I take into for better handling the future?

Hi harryjosh

Again what IW-CP distro and server type are you using

Http2 is centos 7 running apache 2.4

If your server is running that distro, it should be already http2 ready/running and no vhost config needed

Actually if you login to nodeworx, system services, web server - down the right hand side it should show http2 running (green)

Centos 6 and lower runs apache 2.2 and is not capable of http2

Many thanks

John

HTTP/2 is supported only over HTTPS, so you got to add under server block which has SSL configuration. If your SSL configuration is in another file than nginx. conf, then you got to update there.

Admin,
Apps4Rent