Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 12:02:11

Author Topic: configure http2 protocol for apache24  (Read 5676 times)

0 Members and 1 Guest are viewing this topic.

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
configure http2 protocol for apache24
« 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!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: configure http2 protocol for apache24
« Reply #1 on: 2016-05-21, 08:58:55 »
Update your Kloxo-MR with 'yum clean all; yum update -y; sh /script/cleanup'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: configure http2 protocol for apache24
« Reply #2 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
« Last Edit: 2016-05-22, 17:03:28 by Chazy Chaz »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: configure http2 protocol for apache24
« Reply #3 on: 2016-05-22, 16:55:19 »
Try change to 'apache' and then change back to 'nginx-proxy' in 'switch programs'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: configure http2 protocol for apache24
« Reply #4 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.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: configure http2 protocol for apache24
« Reply #5 on: 2016-05-22, 18:54:35 »
Update your Kloxo-MR with 'yum clean all; yum update -y; sh /script/cleanup'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: configure http2 protocol for apache24
« Reply #6 on: 2016-05-22, 19:36:01 »
I've even rebooted but still nothing. Do I have to reinstall apache?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: configure http2 protocol for apache24
« Reply #7 on: 2016-05-22, 19:44:31 »
Make sure the version became to '7.0.0.b-2016052206'. Check with 'sh /script/version-full'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: configure http2 protocol for apache24
« Reply #8 on: 2016-05-22, 21:09:58 »
Yes, that's the installed version:

Code: [Select]
# sh /script/version-full
7.0.0.b-2016052206

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: configure http2 protocol for apache24
« Reply #9 on: 2016-05-22, 22:58:54 »
What's you mean 'I've even rebooted but still nothing. Do I have to reinstall apache?'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: configure http2 protocol for apache24
« Reply #10 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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: configure http2 protocol for apache24
« Reply #11 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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: configure http2 protocol for apache24
« Reply #12 on: 2016-05-23, 04:46:03 »
Look like http/2 still trouble for apache. Running well for nginx (including nginx-proxy).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Chazy Chaz

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: configure http2 protocol for apache24
« Reply #13 on: 2016-05-23, 06:54:59 »
Is it possible to use apache for some domains and nginx for others?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: configure http2 protocol for apache24
« Reply #14 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'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.029 seconds with 19 queries.

web stats analysis