Control Web Panel

WebPanel => Apache => Topic started by: zhakal on June 06, 2017, 05:22:40 PM

Title: HTTP2 / SPDY
Post by: zhakal on June 06, 2017, 05:22:40 PM
Running the Apache 2.4.25, PHP 7.0.19.

Is there are way to get HTTP2 and/or SPDY working with CWP?

When looking, the HTTP2 and SPDY are not in the usual compiled version.

Reason is to get down the First Time To Reply which is very slow when running normal HTTP and be up to date with latest technology.

Title: Re: HTTP2 / SPDY
Post by: zhakal on June 11, 2017, 08:01:30 PM
Anybody know how to enable / compile this in?

This will make the First Time To Reply go drastically down.
Title: Re: HTTP2 / SPDY
Post by: zhakal on June 27, 2017, 06:16:43 PM
Apparently it can be done with "--enable-http2" but don't know where the Apache source is, so I can see if every dependency is there on a Centos6 installation.

https://httpd.apache.org/docs/2.4/howto/http2.html
Title: Re: HTTP2 / SPDY
Post by: Sandeep on June 29, 2017, 12:49:24 PM
hello
upon many requests for http2 we're started testing on cwp and we're managed it to working, we're still working on it this will take some more time before we release it to public.

working :
autossl/LE certs

not working:
didn't find it  yet
Title: Re: HTTP2 / SPDY
Post by: zhakal on July 04, 2017, 08:55:03 PM
This is awesome Sandeep!
CWP will be hosting much faster pages with this enabled. It's going to help the speed a lot.
Title: Re: HTTP2 / SPDY
Post by: zhakal on July 23, 2017, 06:22:00 PM
How is the progress on this? Any release near?
Title: Re: HTTP2 / SPDY
Post by: keyjey on August 17, 2017, 07:37:11 AM
Any updates about this ? thanks
Title: Re: HTTP2 / SPDY
Post by: zhakal on October 02, 2017, 07:35:38 PM
I've seen a new update for CWP.
Does this include HTTP2 or SPDY, or is it not ready yet for production environments?

If it is, how should the Apache be re-compiled to get all the needed modules?
Title: Re: HTTP2 / SPDY
Post by: midzan21 on October 05, 2017, 12:04:53 PM
Hello,

here I have same question after latest update of CWP7pro (bought it for one of VPS machines that is running in production)

When it would be released HTTP/2 support in Apache for CWP users because it would help to one user which now in dev machine have HTTP/2 manually compiled and it works fine, but now want it in CWP so it can go live on production VPS.
Title: Re: HTTP2 / SPDY
Post by: karel on October 06, 2017, 10:30:09 AM
+1
I would like to have http/2 as well. Most other control panels do have it all ready. :-X
Title: Re: HTTP2 / SPDY
Post by: d2db on October 25, 2017, 03:06:56 PM
I don't understand why but module mod_http2.so not found in /usr/local/apache/modules/. Why, and how how to set it up correctly.

When I rebuild apache and add config '--enable-http2' apache not rebuilding
Title: Re: HTTP2 / SPDY
Post by: d2db on October 25, 2017, 03:48:22 PM
This tutorial helped me - http://forum.centos-webpanel.com/apache/(tutorial)-apache-http2-module/
Title: Re: HTTP2 / SPDY
Post by: zhakal on November 13, 2017, 09:52:53 PM
The guide specifies how to do it when using NGINX, but a guide for doing it with Apache 2.4.2X would help as not everybody has the possibility to install NGINX without breaking a lot of functionality.

If I could install NGINX without issues, then this guide would be perfect. But since I cannot, then I had to create this thread :)
Title: Re: HTTP2 / SPDY
Post by: studio4host on November 14, 2017, 12:04:47 PM
the best would be that you wait for new cwp as it has it integrated for centos 7 with nginx for http & https.
next version is 360 for cwp el7.
Title: Re: HTTP2 / SPDY
Post by: Sandeep on November 20, 2017, 05:58:19 AM
on new version you can easily enable http2 on nginx (nginx + apache)
Title: Re: HTTP2 / SPDY
Post by: majorb on August 01, 2018, 01:53:40 AM
on new version you can easily enable http2 on nginx (nginx + apache)
But how??? there is no info on wiki, or the forum...
Title: Re: HTTP2 / SPDY
Post by: studio4host on August 01, 2018, 11:37:46 AM
if you have centos 7 and nginx then simply modify template for nginx https

in cwp admin
IP:2030/admin/index.php?module=vhost_tpl

replace in section "nginx_proxy_vhost_ssl"
Code: [Select]
listen YOURSERVERIP:NGINXPORT;with
Code: [Select]
listen YOURSERVERIP:NGINXPORT ssl http2;
then go to webservers in cwp.admin and click on save and rebuild configuration
Title: Re: HTTP2 / SPDY
Post by: majorb on August 01, 2018, 11:43:44 PM
Thanks!!!

Can I also edit nginx_proxy_vhost to force https?
Code: [Select]
return 301 https://$host:443$request_uri;
Not sure where to insert it, but I think here
Code: [Select]
server {
listen YOURSERVERIP:NGINXPORT;
return 301 https://$host:443$request_uri;
access_log /var/log/nginx/access.YOURDOMAIN.log;
Title: Re: HTTP2 / SPDY
Post by: studio4host on August 02, 2018, 01:29:58 PM
yes, you can but this could cause you issues with the renewal of autossl certificates and domains without ssl will not work then.
Title: Re: HTTP2 / SPDY
Post by: cwp on August 16, 2018, 01:29:52 PM
I want http2 without nginx.
Is there any plan to use http2 from Apache ?
Title: Re: HTTP2 / SPDY
Post by: bullten on August 16, 2018, 01:54:48 PM
http://forum.centos-webpanel.com/how-to/enable-mod_http2-support-for-apache-in-cwp/msg18652/?topicseen#msg18652
Title: Re: HTTP2 / SPDY
Post by: Sandeep on August 17, 2018, 07:27:48 AM
I want http2 without nginx.
Is there any plan to use http2 from Apache ?
https://www.mysterydata.com/how-to-enable-http-2-for-apache-in-cwp-with-mod_http2-module/
Title: Re: HTTP2 / SPDY
Post by: ring_c on September 02, 2018, 02:54:49 PM
https://www.mysterydata.com/how-to-enable-http-2-for-apache-in-cwp-with-mod_http2-module/ (https://www.mysterydata.com/how-to-enable-http-2-for-apache-in-cwp-with-mod_http2-module/)



Ok, Iíve finished this tutorial but still get negative when testing one of my sites.
Was it ok if Iíve followed this tutorial on a server built with Apache+Nginx+Varnish?
Title: Re: HTTP2 / SPDY
Post by: Sandeep on September 05, 2018, 01:05:46 PM
https://www.mysterydata.com/how-to-enable-http-2-for-apache-in-cwp-with-mod_http2-module/ (https://www.mysterydata.com/how-to-enable-http-2-for-apache-in-cwp-with-mod_http2-module/)



Ok, Iíve finished this tutorial but still get negative when testing one of my sites.
Was it ok if Iíve followed this tutorial on a server built with Apache+Nginx+Varnish?

use this tutorial
https://www.mysterydata.com/how-to-enable-http-2-on-cwp7-centos-web-panel/