Nginx multi-domain SSL Certificate and Lua module compilation and Installation

Source: Internet
Author: User
Tags ssl certificate nginx ssl

#! /Bin/bash # unzip zip & tar filefunction untarfile () {for I in $ (LS. | grep-v. SH) doval = $ (echo $ I | grep ". zip $ "| WC-l) If [[" $ Val "-EQ 1]; thendirname = $ (echo $ I | sed" s /. zip // ") if [[! -D $ dirname]; thenecho "Unzip file: $ dirname... "Unzip $ I>/dev/nullfielsedirname = $ (echo $ I | sed" s/.tar.gz // ") if [[! -D $ dirname]; thentar-zxvf $ I>/dev/nullecho "tar file: $ dirname..." fifidonesleep 2 Echo "[unzip files] have finished! "} # Untarfile # Install allfunction installlua () {# luajitif [[! -D/usr/local/lj2/]; thencd LuaJIT-2.0.2make prefix =/usr/local/lj2/make install prefix =/usr/local/lj2/elseecho "[/usr/local/lj2/]: Directory have exists, exit! "Fiecho" [install luajit] have finished! "Sleep 2} function installnginx () {if [[! -D/usr/local/nginx]; thencd nginx-1.6.1. /configure -- prefix =/usr/local/nginx -- with-http_ssl_module -- with-http_gzip_static_module -- with-http_stub_status_module -- without-select_module -- without-poll_module -- With-OpenSSL = .. /openssl-1.0.1i -- add-module = .. /ngx_devel_kit-0.2.19 -- add-module = .. /lua-nginx-module-0.9.10makemake-j2make installecho "/usr/local/lj2/lib/">/etc/lD. so. conf. d/lj2.confld Configelseecho "[/usr/local/nginx]: Directory have exists, exit! "Fiecho" [install nginx] have finished! "Sleep 2} untarfileinstallluainstallnginx

Latest source code package and installation script location: nginx SSL and Lua module package



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.