httpd2.4新特性

來源:互聯網
上載者:User

標籤:httpd2.4新特性

新特性:

  1. MPM支援運行DSO機制,以模組形式按需載入

  2. 支援event MPM

  3. 支援非同步讀寫

  4. 支援每模組及每個目錄分別使用各自的記錄層級

  5. 每請求配置 <If>

  6. 增強版的運算式分析器

  7. 支援毫秒級的keepalive timeout

  8. 基於FQDN的虛擬機器主機不再需要NameVirtualHost指令

  9. 支援使用者自訂變數

 

新模組

  1. mod_proxy_fcgi

  2. mod_ratelimit

  3. mod_remoteip

 

修改了一些配置機制

不再支援使用Order,Deny,Allow來做基於IP的存取控制

 

 

 

以Centos 7 為例

  • httpd2.4的設定檔構成:

主設定檔: /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" />

 

 

  • 基於IP地址做存取控制:

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" />

 

  • 啟用ssl:

yum install -y mod_ssl       //同樣需要額外安裝

 

 

 


httpd2.4新特性

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.