http2 in nginx template

Discussion in 'General' started by zenny, Mar 20, 2017.

  1. zenny

    zenny Member

    Hi,

    I had a look at /usr/local/ispconfig/server/conf/nginx_vhost.conf.master file where there is a provision to enable http2:

    but 'enable http2' is nowhere specified in the ispconfig > sites > add site.

    Also checked Server Config >> Web >> SSL Settings, but there was only checkbox for spdy, not http2.

    How can one enable http2 globally for all sites in ISPconfig3? Thanks!
     
    Last edited: Mar 20, 2017
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you try the spdy checkbox? http2 is the successor of spdy.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Create a custom vhost template in conf-custom folder.
     
  4. ahrasis

    ahrasis Member

    1. Copy default
    /usr/local/ispconfig/server/conf/nginx_vhost.conf.master to
    /usr/local/ispconfig/server/conf-custom/nginx_vhost.conf.master (might need to create the conf-custom directory first).

    2. Then edit the copied / custom vhost template and remove the if condition surrounding http2 in i.e. From:
    Code:
    ssl{tmpl_if name='enable_http2' op='==' value='y'} http2{/tmpl_if}
    To:
    Code:
    ssl http2
     

Share This Page