標籤:httpd2.4新特性
新特性:
MPM支援運行DSO機制,以模組形式按需載入
支援event MPM
支援非同步讀寫
支援每模組及每個目錄分別使用各自的記錄層級
每請求配置 <If>
增強版的運算式分析器
支援毫秒級的keepalive timeout
基於FQDN的虛擬機器主機不再需要NameVirtualHost指令
支援使用者自訂變數
新模組
mod_proxy_fcgi
mod_ratelimit
mod_remoteip
修改了一些配置機制
不再支援使用Order,Deny,Allow來做基於IP的存取控制
以Centos 7 為例
主設定檔: /etc/httpd/conf/httpd.conf
模組設定檔: /etc/httpd/conf.modules.d/*.conf
輔助設定檔: /etc/httpd/conf.d/*.conf
vim /etc/httpd/conf.modules.d/00-mpm.conf
//2.4版本中,可以通過載入模組的方式來切換工作模式
650) this.width=650;" src="http://s2.51cto.com/wyfs02/M02/8C/4B/wKioL1hp-bGz4jI7AAMVD_tYezk865.png" title="b.PNG" alt="wKioL1hp-bGz4jI7AAMVD_tYezk865.png" />
vim/etc/httpd/conf.d/www.aaa.com.conf
//直接在相應目錄中建立虛擬機器主機的設定檔即可
650) this.width=650;" src="http://s1.51cto.com/wyfs02/M02/8C/4B/wKioL1hp-c-iTXg6AAJNPbBWb_s254.png" title="b.PNG" alt="wKioL1hp-c-iTXg6AAJNPbBWb_s254.png" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/8C/4F/wKiom1hp-e-DmSq6AAIVT8RkNH4316.png" title="b.PNG" alt="wKiom1hp-e-DmSq6AAIVT8RkNH4316.png" />
yum install -y mod_ssl //同樣需要額外安裝
httpd2.4新特性