MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Chazy Chaz on 2016-05-20, 22:48:40

Title: configure http2 protocol for apache24
Post by: Chazy Chaz on 2016-05-20, 22:48:40
Hi, I have httpd24u installed and I'd like to enable the HTTP/2 protocol.

I've been reading about this and it seems that apache >= 2.4.17 already comes with the module built-in, so I've just checked this:

Code: [Select]
# httpd -M
[...]
http2_module (shared)
[...]

Now I need to configure the apache virtual hosts configuration file, but I don't know where it is (/home/apache doesn't exists in kloxo-mr7). The configuration would be something like this:

Code: [Select]
<VirtualHost *:443>
 # for enabling h2 on an https server
 Protocols h2 http/1.1

 # other SSL configurations go here
 # ...
</VirtualHost>

And restart apache:

Code: [Select]
/sbin/service httpd restart
Where's this file?

Thanks!
Title: Re: configure http2 protocol for apache24
Post by: MRatWork on 2016-05-21, 08:58:55
Update your Kloxo-MR with 'yum clean all; yum update -y; sh /script/cleanup'
Title: Re: configure http2 protocol for apache24
Post by: Chazy Chaz on 2016-05-22, 16:42:51
Thanks for implement this. Is it supposed to work out of the box? Maybe I'm doing something wrong because it's not working yet.

Edit: This is the log, everything went okay (except nginx but I'm not using it anyway): http://pastebin.com/bGhwZ64G
Title: Re: configure http2 protocol for apache24
Post by: MRatWork on 2016-05-22, 16:55:19
Try change to 'apache' and then change back to 'nginx-proxy' in 'switch programs'.
Title: Re: configure http2 protocol for apache24
Post by: Chazy Chaz on 2016-05-22, 17:15:18
I'm currently using 'apache' with 'Use Apache 2.4' option enabled.

I unchecked that option and selected 'nginxproxy' and then back to 'apache' but still not working.
Title: Re: configure http2 protocol for apache24
Post by: MRatWork on 2016-05-22, 18:54:35
Update your Kloxo-MR with 'yum clean all; yum update -y; sh /script/cleanup'
Title: Re: configure http2 protocol for apache24
Post by: Chazy Chaz on 2016-05-22, 19:36:01
I've even rebooted but still nothing. Do I have to reinstall apache?
Title: Re: configure http2 protocol for apache24
Post by: MRatWork on 2016-05-22, 19:44:31
Make sure the version became to '7.0.0.b-2016052206'. Check with 'sh /script/version-full'.
Title: Re: configure http2 protocol for apache24
Post by: Chazy Chaz on 2016-05-22, 21:09:58
Yes, that's the installed version:

Code: [Select]
# sh /script/version-full
7.0.0.b-2016052206
Title: Re: configure http2 protocol for apache24
Post by: MRatWork on 2016-05-22, 22:58:54
What's you mean 'I've even rebooted but still nothing. Do I have to reinstall apache?'
Title: Re: configure http2 protocol for apache24
Post by: Chazy Chaz on 2016-05-23, 03:05:52
I meant that after I upgraded to '7.0.0.b-2016052206' I did reboot the vps. And if I need to switch programs again.

Did you tested it? I mean, I don't know if it's a bug in kloxo or I did something wrong again  :P
Title: Re: configure http2 protocol for apache24
Post by: MRatWork on 2016-05-23, 03:29:57
I meant that after I upgraded to '7.0.0.b-2016052206' I did reboot the vps. And if I need to switch programs again.

Did you tested it? I mean, I don't know if it's a bug in kloxo or I did something wrong again  :P
No. Running 'sh /script/cleanup' will be fix nginx issue.
Title: Re: configure http2 protocol for apache24
Post by: MRatWork on 2016-05-23, 04:46:03
Look like http/2 still trouble for apache. Running well for nginx (including nginx-proxy).
Title: Re: configure http2 protocol for apache24
Post by: Chazy Chaz on 2016-05-23, 06:54:59
Is it possible to use apache for some domains and nginx for others?
Title: Re: configure http2 protocol for apache24
Post by: MRatWork on 2016-05-23, 10:33:35
Is it possible to use apache for some domains and nginx for others?

At this moment, when using nginx-proxy, you select for using 'nginx' or 'nginx-proxy' for every domains. Go to 'admin > all > all domains > (select one) > Web Features'.