New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

HTTP2 / SPDY

Started by zhakal, June 06, 2017, 05:22:40 PM

Previous topic - Next topic

majorb

Quote from: Sandeep on November 20, 2017, 05:58:19 AM
on new version you can easily enable http2 on nginx (nginx + apache)
But how??? there is no info on wiki, or the forum...

studio4host

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"
listen YOURSERVERIP:NGINXPORT;
with
listen YOURSERVERIP:NGINXPORT ssl http2;

then go to webservers in cwp.admin and click on save and rebuild configuration
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

majorb

#17
Thanks!!!

Can I also edit nginx_proxy_vhost to force https?
return 301 https://$host:443$request_uri;

Not sure where to insert it, but I think here
server {
listen YOURSERVERIP:NGINXPORT;
return 301 https://$host:443$request_uri;
access_log /var/log/nginx/access.YOURDOMAIN.log;

studio4host

yes, you can but this could cause you issues with the renewal of autossl certificates and domains without ssl will not work then.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

cwp_user2018

I want http2 without nginx.
Is there any plan to use http2 from Apache ?



ring_c

Quote from: Sandeep on August 17, 2018, 07:27:48 AM
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?

Sandeep