Categories
Windows

Doing CHACHA and Brotli with Apache 2.4 on Windows.

同一記事の日本語版
Update information      Edit(May 2)

   Last October, I wrote “CHACHA20 Apache official version already supports but Apache Lounge version 2.4.23, which is my server current version, hasn’t yet“. On April 19, Steffen announced Apache 2.4.26-Dev available with Openssl 1.1.0e VC14. So, we can use CHACHA20_POLY1305 in the Windows version Apache now. For enabling the cipher you need to add CHACHA20-POLY1305 things to the SSLCipherSuite of the httpd-ssl.conf and reboot the Apache.

   On April 26, Steffen said he built Apache 2.4.26 with VC15 and there is the new module mod_brotli. Wow! He is a hard worker! Thanks! You can download this version from here. This version was built with VC15, so you need the latest C++ Redistributable Visual Studio 2017 : vc_redist_x64 or vc_redist_x86.

   I commented out the old setting for DEFLATE and added the new for BROTLI_COMPRESS;DEFLATE, and loaded mod_brotli in the conf file. Reboot the Apache.

   The results are here:

Edit(May 2):

   After moving to the Brotli compression, I feel my site display speed is faster than before. So I took benchmarks about two test files by cURL. Actually the result tells us the same as my feeling.
curl.exe -k -O https://test.o6asan.com/test1.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 261 100 261 0 0 3346 0 --:--:-- --:--:-- --:--:-- 3346

curl.exe -k -H "Accept-Encoding:gzip" -O https://test.o6asan.com/test1.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 204 100 204 0 0 2615 0 --:--:-- --:--:-- --:--:-- 2615


curl.exe -k -H "Accept-Encoding:br" -O https://test.o6asan.com/test1.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 147 100 147 0 0 1884 0 --:--:-- --:--:-- --:--:-- 1884

 
 
 
curl.exe -k -O https://test.o6asan.com/test2.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 90304 100 90304 0 0 938k 0 --:--:-- --:--:-- --:--:-- 938k


curl.exe -k -H "Accept-Encoding:gzip" -O https://test.o6asan.com/test2.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9536 100 9536 0 0 99k 0 --:--:-- --:--:-- --:--:-- 99k

curl.exe -k -H "Accept-Encoding:br" -O https://test.o6asan.com/test2.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8369 100 8369 0 0 89031 0 --:--:-- --:--:-- --:--:-- 89031

Leave a Reply

Your email address will not be published. Required fields are marked *