apache2.2 到 2.4後設定檔需要更改的部分

來源:互聯網
上載者:User

標籤:apache2.2 到 2.4後設定檔需要更改的部分

參考: http://www.dotblogs.com.tw/maple ... e24_httpd_conf.aspx

1.  存取控制
2.2 的時候
Order deny,allow
Deny from all
在 2.4 需要改成
Require all denied

常用的配置有:
Require all denied   
Require all granted   
Require host xxx.com   
Require ip 192.168.1 192.168.2   
Require local

2. RewriteLogLevel  變為:logLevel
如,LogLevel warn rewrite: warn

3. Namevirtualhost 被移除

4. 網站壓縮,除了使用mod_deflate,還要mod_filter
使用ssl,除了使用mod_ssl,還需要mod_socache_shmcb

本文出自 “小楊” 部落格,請務必保留此出處http://aqiang.blog.51cto.com/6086626/1895866

apache2.2 到 2.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.