The new versions of Apache and Nginx already support http/2. The test has been estimated to have seen a lot. In most cases, the current version of http/2 speed spdyDirectAdmin has not officially provided http/2 support in the background. However, we can do it automatically, it is very simple, and will not affect the normal operation of the system.
First install the new version of OpenSSL, because only the new version supports ALPN. I will install it directly to other locations and will not overwrite the system. Some opensslwget http://codes.yutian.org/Linux/software/openssl-1.0.2d.tar.gztar xzf openssl-1.0.2d.tar.gzcd openssl-1.0.2d./config --prefix=/usr /local/lib_http2 no-ssl2 no-ssl3 zlib-dynamicmake dependmake install
Then install nghttp2, the DirectAdmin panel is already included, but this feature is not officially provided. It should be done in advance to support http/2 in advance. Prepare cd /usr/local/directadmin/custombuild./build update./build nghttp2
Copy files, enable custom Apache compilation rules cd /usr/local/directadmin/custombuildmkdir -p custom/ap2cp -p Configure/ap2/configure.apache Custom/ap2/configure.apache
Modify the /usr/local/directadmin/custombuild/custom/ap2/configure.apache file to find this line"--with-ssl=/usr" \\
Modify to such a "--enable-http2" \\"--enable-ssl-staticlib-deps" \\"--with-ssl=/usr/local/lib_http2" \\
Start Compile Apache./build apache
Edit httpd file to add http/2 support statement echo 'ProtocolsHonorOrder On' >> /etc/httpd/conf/extra/httpd-includes.confecho 'Protocols h2 h2c http/1.1' >> /etc/httpd/conf/extra/httpd-includes.conf
Update SSL Ciphers /etc/httpd/conf/extra/httpd-ssl.confcd /usr/local/directadmin/Custombuild./build rewrite_confs
Then it will be fine. Currently testing http/2 support is still perfect, but there is a small bug, my own test found that if you use a generic domain name certificate, the browser can only successfully access the first referenced https website, the second Will fail, for example: *.xxx.com pan-domain certificate, you have deployed multiple second-level domain names on the same server, a.xxx.com and b.xxx.com, you visited https://a.xxx. After com, visiting https://b.xxx.com will fail. This is a bug in the new version of Apache. The next version will be fixed
There are some scenario where system admin wants only few users should be allowed to transfer files
you want under Linux How to install the jdk you want under Linux? Last time we talked about how to u
self-entertainment, I decided to start a Linux server, then execute the ld & ldquo;rm –rf /&rd
Record your favorite Linux system commands for easy reference later, and find that memory is getting
Linux history: What is the relationship between Linux and GNU?
Conflicts in Linux and their responses
Self-made Linux Pinyin Wubi input method
Centos hard disk partition three solutions
Linux memory view command free
Linux system command make, clean usage explain
View file and folder size under Linux
Linux df Command Disk Directory Management Shows the available disk space on the disk partition.
Linux system configuration VI or VIM tips
Linux shell awk process control statement (if, for, while, do) details
How to cancel the power-on password for Win7 computer
How to open the screen touch keyboard under Windows10 system:
Windows 8 system unique features collection (1)
What does the BD version mean?
Win8/win8.1 next 11 new tab settings and can not enter online banking password
Basic knowledge of Linux distributions and installations
Fun performance optimization of Windows XP registry
Microsoft is really enough to reach the goal! Win10 forced free upgrade