Source Installation H2O Http Server program to Ubuntu servers

Source: Internet
Author: User
Tags rar webp xspf

First install the family bucket

Apt install-y build-essential zlib1g-dev libpcre3 libpcre3-dev unzip cmake libncurses5-dev Libpam0g-dev Bison libboost-de V Libssl-dev OpenSSL g++ libxml2-dev libcurl3-openssl-dev libpng-dev libpng12-dev libfreetype6-dev Libfreetype6-dev

To download the installation package:

Curl Https://github.com/h2o/h2o/archive/v2.2.2.tar.gz-o v2.2.2.tar.gz

Extract:

Tar zxf v2.2.2.tar.gz

To configure the installation directory:

CMake. -dcmake_install_prefix=/usr/local/H2O -dwith_bundled_ssl=on

Compile and install:

Make-j8

Make install

Configuration file:

Vim/home/etc/h2o.cf

1 Access-log:/tmp/h2o.log2 Error-log:/tmp/h2o.err3 pid-file:/tmp/h2o.pid4max-connections:5125 File.send-gzip:on6Tcp-fastopen:37 user:www8File.index:[' index.php ', ' index.html ']9 file.mime.addtypes:Ten text/html:. html. htm. shtml One text/css:. CSS A text/xml:. XML - image/gif:. gif - image/jpeg:. jpeg. jpg the application/javascript:. js - application/atom+xml:. Atom - application/rss+xml:. RSS -  + text/mathml:. MML - text/plain:. txt + text/vnd.sun.j2me.app-descriptor:. Jad A text/vnd.wap.wml:. WML at text/x-component:. HTC -  - image/png:. PNG - Image/tiff:. tif. TIFF - image/vnd.wap.wbmp:. Wbmp - Image/x-icon:. ico in image/x-jng:. Jng - image/x-ms-bmp:. bmp to image/svg+xml:. svg. svgz + image/webp:. WEBP -  the application/font-woff:. Woff * application/java-archive:. jar. War. Ear $ Application/json:. JSONPanax Notoginseng application/mac-binhex40:. hqx - Application/msword:. doc the application/pdf:. pdf + application/postscript:. ps. eps. Ai A application/rtf:. rtf the application/vnd.apple.mpegurl:. m3u8 + application/vnd.ms-excel:. xls - application/vnd.ms-fontobject:. EoT $ application/vnd.ms-powerpoint:. ppt $ APPLICATION/VND.WAP.WMLC:. WMLC - application/vnd.google-earth.kml+xml:. KML - application/vnd.google-earth.kmz:. KMZ the application/x-7z-compressed:. 7z - Application/x-cocoa:. CCOWuyi Application/x-java-archive-diff:. Jardiff the application/x-java-jnlp-file:. JNLP - application/x-makeself:. Run Wu application/x-perl:. pl. PM - application/x-pilot:. PRC. PDB About application/x-rar-compressed:. rar $ application/x-redhat-package-manager:. RPM - Application/x-sea:. Sea - application/x-shockwave-flash:. swf - application/x-stuffit:. Sit A application/x-tcl:. tcl tk + Application/x-x509-ca-cert:. Der. Pem. CRT the application/x-xpinstall:. XPI - application/xhtml+xml:. XHTML $ application/xspf+xml:. XSPF the application/zip:. zip the  the application/octet-stream:. bin. exe. dll the application/octet-stream:. Deb - application/octet-stream:. DMG in application/octet-stream:. iso. IMG the Application/octet-stream:. msi. msp. MSM the  About application/vnd.openxmlformats-officedocument.wordprocessingml.document:. docx the application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:. xlsx the application/vnd.openxmlformats-officedocument.presentationml.presentation:. pptx the  + Audio/midi:. Mid. midi. Kar - audio/mpeg:. mp3 the audio/ogg:. oggBayi audio/x-m4a:. M4A the audio/x-realaudio:. RA the  - video/3gpp:. 3gpp. 3gp - video/mp2t:. TS the video/mp4:. mp4 the video/mpeg:. mpeg. mpg the video/quicktime:. mov the VIDEO/WEBM:. WEBM - video/x-flv:. flv the video/x-m4v:. M4V the video/x-mng:. MNG the video/x-ms-asf:. asx. ASF94 video/x-ms-wmv:. wmv the video/x-msvideo:. avi the  the hosts:98"Domain Name: port": About#header. Add: "strict-transport-security:max-age=39420000; Includesubdomains; Preload " -Header.add: "X-frame-options:sameorigin"101Header.add: "X-content-type-options:nosniff"102Header.add: "X-xss-protection:1; Mode=block "103 Listen:104 Port: Ports the #ssl:106 #certificate-file:/home/wwwroot/ssl/miraisann.com.crt107 #key-file:/home/wwwroot/ssl/miraisann.com.key108 #dh-file:/home/wwwroot/ssl/dhparam4096.pem109#minimum-version:tlsv1.1 the #cipher-preference:server111 #cipher-suite:chacha20 eecdh+ecdsa+aesgcm eecdh+arsa+aesgcm eecdh+ecdsa+sha384 eecdh+ecdsa+sha256 EECDH+aRSA+ SHA384 eecdh+arsa+sha256 eecdh+arsa+rc4 EECDH edh+arsa!anull!enull! Low!3des! MD5! Exp! Psk! SRP! Dss! RC4 the paths:113 /: the File.dir:/home/wwwroot/domain/xx.com the Redirect: the URL:/index.php/117 Internal:yes118status:307119 File.custom-handler: - extension:. php121 Fastcgi.connect:122 Port:/tmp/php-fpm.sock123Type:unix

Source Installation H2O Http Server program to Ubuntu servers

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.