解決方法:控制台→開啟「Windows防火牆」→例外→查看有沒有「Apache HTTP Server」。

Window Server 2012
Apache 從 2.2 換至 2.4 httpd.conf 的調整筆記 (windows 環境)
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:443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
因此需指定監聽的 IP ,可設定多個
例如:
Listen 192.168.2.1:443
Listen 127.0.0.1:443
打開 conf/httpd.conf
找到
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
ServerName 192.168.xxx.xxx <-- 改成你的IP (虛擬IP)
如果沒有可以用 127.0.0.1
不要用 0.0.0.0:80
之後重啟 apache
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName
手動升級(非 *.msi 封裝)Apache 2.4.3 於 Windows 成功紀要
那麼您可以在 httpd.conf 新增底下三行:
- 代碼: 選擇全部
AcceptFilter http none
EnableSendfile off
EnableMMAP off
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。