How to enable http2 in ispconfig3

Discussion in 'General' started by Oitsuki, Oct 27, 2017.

  1. Oitsuki

    Oitsuki New Member

    I saw this tuto how to include http2 inside ispconfig.

    Coul you confirm me if it's correct. I don't want to make a an mistake.

    <code>
    nano /usr/local/ispconfig/server/conf/nginx_vhost.conf.master

    Replace :

    listen <tmpl_var name=’ip_address’>:443 ssl;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    <tmpl_if name=’ipv6_enabled’>
    listen [<tmpl_var name=’ipv6_address’>]:443 ssl;
    </tmpl_if>
    ssl_certificate <tmpl_var name=’document_root’>/ssl/<tmpl_var name=’ssl_domain’>.crt;
    ssl_certificate_key <tmpl_var name=’document_root’>/ssl/<tmpl_var name=’ssl_domain’>.key;
    </tmpl_if>

    by :

    <tmpl_if name=’ssl_enabled’>
    listen <tmpl_var name=’ip_address’>:443 ssl http2;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    <tmpl_if name=’ipv6_enabled’>
    listen [<tmpl_var name=’ipv6_address’>]:443 ssl http2;
    </tmpl_if>
    ssl_certificate /etc/letsencrypt/live/<tmpl_var name=’domain’>/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/<tmpl_var name=’domain’>/privkey.pem;
    </tmpl_if>
    </code>
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    copy the file /usr/local/ispconfig/server/conf/nginx_vhost.conf.master to /usr/local/ispconfig/server/conf-custom/nginx_vhost.conf.master

    and then edit the /usr/local/ispconfig/server/conf-custom/nginx_vhost.conf.master file in that way.
     
  3. Oitsuki

    Oitsuki New Member

    Do the have something else to make to activate the protocol ?
    Note I am under apache2
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The above config is for nginx web servers, not apache.
     
  5. gral

    gral Member

    Hello, the files into conf-custom dir override the default config ?
     
  6. HSorgYves

    HSorgYves Active Member

  7. Oitsuki

    Oitsuki New Member

    In this case wahtis the process to enable http2 ? Do you write a tuto?
     
  8. HSorgYves

    HSorgYves Active Member

    Enable mod_http2, I think that's it, but I never tried.
     
  9. ahrasis

    ahrasis Active Member

    This http2 feature will be properly added in 3.2. In 3.1, I still manually edit the vhost to use it since I am using nginx. For apache, as stated above, you might need to enable its module first but I am not sure since I am not using apache anymore.
     
  10. Oitsuki

    Oitsuki New Member

    Ok, I find a solution but what is the best

    /etc/apache2/sites-available
    to test
    <code>sudo a2enmod http2</code>
    and restart apache2

    Number 1 : Install all the website
    /etc/apache2/sites-available
    <code>vi mydomain.com</code>
    under ServerAdmin add
    <code>Protocols h2 http/1.1</code>
    restart apache2
    make the same thing for all website

    Number 2 : Install all the website
    <code>vi 000-default.conf</code>
    below DocumentRoot
    add <code>Protocols h2 http/1.1<code>
    For futur website I think ?
     
    Last edited: Oct 29, 2017

Share This Page