網頁

2013年7月8日 星期一

WAMP Server

有一個解除封鎖Apache的動作沒有做,80Port沒開啟,伺服器會無法外連。
解決方法:控制台→開啟「Windows防火牆」→例外→查看有沒有「Apache HTTP Server」。

Apache_HTTP_Server

Window Server 2012






新增完成之後重新開機(不是重開Apache,要重開機)。


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 localhost:80  IP address


手動升級(非 *.msi 封裝)Apache 2.4.3 於 Windows 成功紀要


如果在 Apache 錯誤記錄中,有類似「Asynchronous AcceptEx failed」的訊息,
那麼您可以在 httpd.conf 新增底下三行:

代碼: 選擇全部
AcceptFilter http none 
EnableSendfile off 
EnableMMAP off

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。