Enable H2C in apache2.4.18

Source: Internet
Author: User

After installing the Apache2.4.18:

Install nghttp2-1.6.0 using./configure, make, make install, and then start the process of enabling H2C.

    1. [Email protected]:~/desktop/httpd-2.4.18#/configure--ENABLE-HTTP2--with-nghttp2=/home/yu/desktop-- Enable-nghttp2-staticlib-deps

    2. Make

    3. Make install

TLS support requires installation of OpenSSL, using./config, make, and make install.

4. [Email protected]:/usr/local/apache2/conf# VI httpd.conf

LoadModule http2_module modules/mod_http2.so

       <ifmodule http2_module>

       loglevel http2:info

       </ifmodule>

       protocols h2c http/1.1

after that, I rerun the Apache installation step, and then./httpd

5.curl installation using HTTP2

6. Use curl-v--http2 http://localhost the "101 switching" shown in the show enable success.


Note: Reference URL

Enable H2C in apache2.4.18

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.