Open main menu

UESPWiki β

User:Daveh/HTTP2

< User:Daveh

Some notes about enabled HTTP2 on the UESP servers.

LighttpdEdit

  • Download lighttpd-1.4.59 (this version enables HTTP2 by default).
  • Configure with:
    ./configure '--with-openssl' '--with-zlib' '-with-bzip2' '--with-fam' '--with-lua' '--with-gdbm' '--with-pam' '--with-pcre' '--with-ldap' '--prefix=/usr'
    make
    make install
  • Stop/restart.


ApacheEdit

  • Download Apache 2.4.17 (or later).
  • Configure with:
    ./configure '--prefix=/usr' '--enable-http2' '--enable-ssl' -enable-ssl-staticlib-deps --enable-mods-static=ssl '--with-suexec-bin=/usr/bin/suexec' '--enable-mpms-shared=all' '--with-mpm=worker' '--libexecdir=/etc/httpd/modules'
  • Make and check with ./httpd -V. If paths are not the same as existing httpd you may need to manually modify headers (include/ap_config_auto.h) and recompile.
  • SSL must be statically compiled in order for HTTP2 connections to be made.
  • Can't use a prefork MPM, must be worker or event.
  • Copy httpd to /usr/sbin/httpd (or a different file and do a symbolic link).
  • Copy mod_http2.so to /etc/httpd/modules.
  • Disable loading of mod_ssl in /etc/httpd/conf.modules.d/00-ssl.conf (it is statically compiled now).
  • Enable HTTP2 by adding the following line somewhere:
    Protocols h2 h2c http/1.1
  • Disable prefork MPM and enable worker.
  • Stop and then start Apache and check.