Apache抱怨无法打开端口443:在httpd.conf中没有提到443

时间:2016-08-30 15:55:16

标签: apache

我发现apache今天没有开始。它已作为服务安装在Windows 10上,并且工作正常,直到今天。尝试A service specific error occurred: 1.时收到net start apache24错误。当我尝试手动启动它时,我得到以下内容:

C:\WINDOWS\system32>C:\Apache24\bin\httpd.exe
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : AH00072: make_sock: could not bind to address [::]:443
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : 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

这很有趣,因为我的httpd.conf中没有443。奇怪的是,它在端口80时给了我错误,直到我在httpd.conf中更改它。我将端口改为随机的其他端口,它仍然说443.我以为我有正确的httpd.conf:

C:\WINDOWS\system32>C:\Apache24\bin\httpd.exe -V
Server version: Apache/2.4.23 (Win64)
Server built:   Jul  1 2016 10:38:22
Distributed by: The Apache Haus
Compiled with:  Visual Studio 2015
Server's Module Magic Number: 20120211:61
Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM:     WinNT
  threaded:     yes (fixed thread count)
    forked:     no
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/Apache24"
 -D HTTPD_EXEC="/Apache24/bin/httpd.exe"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error.log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

* The Apache Haus
* is not affiliated with, or endorsed by, the Apache Software Foundation.
* Apache HTTP Server, Apache, and the Apache feather logo are trademarks of
* The Apache Software Foundation.

但也许我错了?

完整的httpd.conf:

https://gist.github.com/anonymous/7e1a23e28efafbb2450f2245112a2d0e

0 个答案:

没有答案