In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the method of enabling HTTP/2.0 in Apache, which is very detailed and has certain reference value. Friends who are interested must finish it!
HTTP/2 (HTTP/2.0) is the main upgrade version of the older version of the HTTP/1.1 protocol. HTTP/1 was released in 1997, and after a long time, HTTP/2 was released in 2015. The HTTP/2 protocol is based on SPDY (commonly referred to as speedy). Some of the major updates to HTTP/2 are:
Server push: the server will actively send components to the client, so the client does not need to wait for a request to be sent to the server.
Multiplexing: reduces the number of active connections by bundling multiple HTTP requests from the client and to the server.
Encryption: encrypt efficiently using the TLS protocol in HTTP/2 through HTTP/1.1.
HTTP header compression: compressing the header reduces the overhead of additional requests to the Web server.
Install or update Apache
The HTTP/2 protocol supported by the Apache version > = 2.4.17. Therefore, you need to make sure that your Apache version supports the HTTP/2 protocol. If you have not installed Apache or are still using the old version, you need to upgrade it first. Use the following command to add ppa to install the latest version of Apache2 on the Ubuntu system.
$sudo apt-get install python-software-properties$ sudo add-apt-repository ppa:ondrej/apache2 $sudo apt-get update$ sudo apt-get install apache2
Verify the Apache version
After successfully installing the Apache2 Web server on the system, make sure that Apache > = 2.4.17, the HTTP/2 protocol is not supported in previous versions.
$apache2-vServer version: Apache/2.4.17 (Ubuntu) Server built: 2015-11-05T00:00:00
Enable HTTP/2 in Apache
The HTTP/2 protocol requires a SSL/TLS virtual host. If you do not have a SSL/TLS-enabled Web site, you cannot use the HTTP/2 protocol. Now edit your website virtualhost and add the http2 keyword to the listen section.
$sudo a2enmod http2 $sudo service apache2 restart
Verify HTTP/2
Configure a virtual host with SSL for your domain.
These are all the contents of the method of enabling HTTP/2.0 in Apache. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.