回覆列表
  • 1 # 會跑步的漏斗

    Windows環境從Apache2.2改成Apache2.4後httpd.conf中的設定異同。1、許可權設定方式變更2.2使用Order Deny / Allow的方式,2.4改用Requireapache2.2:Order deny,allowDeny from allapache2.4:Require all denied此處比較常用的有如下幾種:Require all deniedRequire all grantedRequire host xxx.comRequire ip 192.168.1 192.168.2Require local注意:若有設定在htaccess檔案中的也要修改2、設定日誌紀錄方式變更RewriteLogLevel 指令改為 logLevelLOGLEVEL設定第一個值是針對整個Apache的預設等級,後方可以對指定的模組修改此模組的日誌記錄等級比如:LogLevel warn rewrite: warn3、Namevirtualhost 被移除4、需載入更多的模組開啟Gzip在apache2.2中需載入mod_deflate,apache2.4中需載入mod_filter和mod_deflate開啟SSL在apache2.2中需載入mod_ssl,apache2.4中需載入mod_socache_shmcb和mod_ssl5、在windows環境建議的設定EnableSendfile OffEnableMMAP Off當Log日誌出現AcceptEx failed等錯誤時建議設定AcceptFilter http noneAcceptFilter https none說明:Win32DisableAcceptEx在apache2.4中被AcceptFilter None取代6、Listen設定的調整以443為例,不可以只設定Listen 443會出現以下錯誤:(OS 10048)一次只能用一個通訊端地址(通訊協定/網路位址/連線) : AH00072: make_sock: could not bind to address [::]:443(OS 10048)一次只能用一個通訊端地址(通訊協定/網路位址/連線) : AH00072: make_sock: could not bind to address 0.0.0.0:443AH00451: no listening sockets available, shutting downAH00015: Unable to open logs因此需指定監聽的IP,可設定多個

  • 中秋節和大豐收的關聯?
  • 汽輪機甩負荷時怎麼操作? 具體分析,謝謝?