Control Web Panel

WebPanel => How to => Topic started by: zenben on January 25, 2018, 03:19:51 PM

Title: How to Enable HTTP/2 on CWP7
Post by: zenben on January 25, 2018, 03:19:51 PM
Please have a look at this article » https://www.mysterydata.com/how-to-enable-http-2-on-cwp7-centos-web-panel/ (https://www.mysterydata.com/how-to-enable-http-2-on-cwp7-centos-web-panel/)

All the best,
Ben
Title: Re: How to Enable HTTP/2 on CWP7
Post by: 24x7servermanagement on January 25, 2018, 11:42:06 PM
Thanks for sharing such a valuable post. :)
Title: Re: How to Enable HTTP/2 on CWP7
Post by: zenben on February 05, 2018, 01:03:18 PM
If ngninx test (/usr/sbin/nginx -t) gives you »
Code: [Select]
nginx: [emerg] a duplicate default server for 12.34.56.78:443 in /etc/nginx/conf.d/your-addon-domain.com_ssl.conf:4
nginx: configuration file /etc/nginx/nginx.conf test failed
as an error, it's because you have 2 or more _ssl.conf with "default_server" under /etc/nginx/conf.d/

Only 1 _ssl.conf (vhost) is allowd to have »
server {
    listen 12.34.56.78:443 ssl http2 default_server;
    …
}

Remove either all or remove all except 1 "default_server" inside your-main-domain.com_ssl.conf
Good luck.
Title: Re: How to Enable HTTP/2 on CWP7
Post by: germanos on December 13, 2018, 07:22:00 AM
Thank you for sharing  :)