Apache Web server

Source: Internet
Author: User
Tags browser cache

Apache Website Service Basics

Apache servers can run on a variety of operating system platforms such as Linux,unix,windows. The server program that is based on the code of the original Web service program is modified. Apache server performance in terms of features, performance and security are more prominent, mainly open source code, cross-platform applications, support a variety of web programming voice, modular design, stable operation, good security.

New version of httpd-2.4 features:

New modules:

MOD_PROXY_FCGI provides fcgi agent

Mod_ratelimit Limiting user Bandwidth

Mod_request Request to do filter

MOD_REMOTEIP matching the IP address of the client

IP-based access control has been modified to no longer support the Allow,dengy,order mechanism, unified use of require

Added several features

The MPM support run is load, provided that this feature is required to be enabled, that is, compile the installation to enable--enable-mpms-shared=all--with-mpm=event

Support Event

Supports asynchronous read and write

Specify the log level on each module and per directory

Enhanced version of the expression parser

Millisecond-level keeaplive timeout

FQDN-based virtual host no longer requires name VirtualHost directive

Support for using custom variables

Installation Environment: Operating system: centos7.2, turn off SELinux. HTTPD Package if security needs to be uninstalled

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8F/BF/wKiom1jrbirhdsuuAAAlQy5ZcXo625.png-wh_500x0-wm_ 3-wmp_4-s_94361746.png "title=" 6.PNG "alt=" Wkiom1jrbirhdsuuaaalqy5zcxo625.png-wh_50 "/>

Download Source Package httpd-2.4.23.tar.gz,apr-1.5.2.tar.gz,apr-util-1.5.4.tar.gz,zlib-1.2.8.tar.gz,pcre-8.39.tar.gz Note: Apr The Apache portable runtime, an abstract library of operating system calls, is used to implement the operating system used by Apache internal components and to improve system portability.

#tar ZXF apr-1.5.2.tar.gz

#cd apr-1.5.2/

#./configure--PREFIX=/USR/LOCAL/APR

#make && make Install

#tar ZXF apr-util-1.5.4.tar.gz

#cd apr-util-1.5.4/

#./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR

#make && make Install

#tar ZXF lib-1.2.8.tar.gz

#cd zlib-1.2.8/

#./configure--prefix=/usr/local/zlib

#make && make Install

#tar ZXF pcre-8.39.tar.gz

#cd pcre-8.39/

#./configure--prefix=/usr/local/pcre

#make && make Install

Download Openssl,centos7 from version openssl-1.0.1e

#wget https://www.openssl.org/source/openssl-1.0.1u.tar.gz

#tar ZXF openssl-1.0.1u.tar.gz

#cd openssl-1.0.1u

#./config-fpic--prefix=/usr/local/openssl enable-shared

#make && make instal

#mv/usr/bin/openssl/usr/bin/openssl.1.0.1e

#ln-S/usr/local/openssl/bin/openssl/usr/bin/openssl

Then formally install apache2.4.23

#tar ZXF httpd-2.4.23.tar.gz

#cd httpd-2.4.23

#./configure--prefix=/usr/local/http-2.4.23--enable-so--enable-cgi--enable-cgid--enable-ssl--with-ssl=/usr/ Local/openssl--enable-rewrite--with-pcre=/usr/local/pcre--with-z=/usr/local/zlib--with-apr=/usr/local/apr-- With-apr-util=/usr/local/apr-util--enable-modules=most--enable-mods-shared=most--enable-mpms-shared=all-- With-mpm=event-enable-proxy--enable-proxy-fcgi--enable-expires--enable-deflate

Related parameters:

--ENABLE-SO: Support dynamic sharing module (that is, open DSO support)

--enable-rewrite: Support URL rewriting

--ENABLE-SLL: Support SSL

--WITH-SSL=/USR/LOCAL/OPENSSL: Specify the SSL installation location

--ENABLE-CGI: Enable CGI

--ENABLE-CGID:MPM is using an event or worker to enable Cgid

--enable-modules=most: explicitly indicates that modules to be statically compiled into httpd binaries,<module-list> a space-delimited list of module names, all or most,all that contain all modules, Most include most common modules

--enable-mpms-shared=all: Explicitly indicate that the module to be compiled by DSO,<module-list> is a space-delimited list of module names, the all table or Most,al represents all modules, most of which contains most of the modules.

--enable-mpms-shared=all: Enable the mode supported by MPM so that the event,worker,prefork will be installed in a modular manner.

--with-mpm=event: Specifies that the MPM mode is enabled by default using Enent Moss and that the earlier version 2.0 default prefork2.2 version is the worker,2.4 version is event.

--with-pcre=/usr/local/pcre: Support Pcre

--with-z=/usr/local/zlib: Using zlib compression Library

--WITH-APR=/USR/LOCAL/APR: Specify the installation path for APR

--with-apr-util=/usr/local/apr-util: Specify the installation path for Apr-util

--enable-expires: Activates or controls HTTP's "Expires:" and "Cache-control:" header content, which provides client browser cache settings for content such as Web site pictures, Js,css, and so on.

--enable-deflate: Provide the compression of the content of the compiler code support, is generally html,js,css and other content of the site.

This article is from the "11853028" blog, please be sure to keep this source http://tanhong.blog.51cto.com/11853028/1914708

Apache Web server

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.