一段时间后无法从外部连接到Apache HTTP服务器


Cannot connect to Apache HTTP Server from outside after awhile

我们的网站在一段时间(2-3天)后无法从外部(非本地主机)访问。

我们使用Apache HTTP Server 2.4。有4个网站托管在服务器上,主要使用端口443使用自签名服务器证书。到目前为止,一切都很顺利。由于我使用别名指令和PHP添加了一个新的网站,过了一会儿所有网站都不能从远程访问了。但是,我可以从服务器上的localhost访问它们。

错误日志在网站无法访问时没有显示任何条目。我们目前通过重启Apache HTTP服务器来修复这个问题,一切都恢复正常了。问题是,我们需要全天候的服务。

这是当前的httpd.conf:

Listen 443
SSLSessionCache "shmcb:${SRVROOT}/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
<VirtualHost *:443>
    DocumentRoot "D:/htdocs"
    ServerName myserver.net:443
    Alias /site2 "${WEBROOT}/site2"
    Alias /site3 "${WEBROOT}/site3"
    ScriptInterpreterSource Registry-Strict
    Options +ExecCGI +FollowSymLinks -Indexes
    DirectoryIndex index.cgi index.html index.php
    SSLEngine on
    SSLCertificateFile "${SRVROOT}/ssl/server.crt"
    SSLCertificateKeyFile "${SRVROOT}/ssl/server.key"
</VirtualHost>

LoadModule php5_module "${PHPROOT}/php5apache2_4.dll"
<IfModule php5_module>
    AddHandler application/x-httpd-php .php
    PHPIniDir "${PHPROOT}"
</IfModule>

有人知道去哪里看吗?非常感谢。

服务器运行了13天,然后由于一些配置更改,我们不得不重新启动它。花了一天时间,问题又出现了。我查看了服务器状态页面,但我找不到任何线索,可能是什么问题:

Server Version: Apache/2.4.16 (Win64) OpenSSL/1.0.1p PHP/5.6.12
Server MPM: WinNT
Server Built: Jul 13 2015 12:31:58
Distributed by: The Apache Haus
Compiled with: Visual Studio 2012
Current Time: Tuesday, 06-Oct-2015 11:38:01 Mitteleuropäische Sommerzeit
Restart Time: Sunday, 04-Oct-2015 23:40:51 Mitteleuropäische Sommerzeit
Parent Server Config. Generation: 1
Parent Server MPM Generation: 0
Server uptime: 1 day 11 hours 57 minutes 9 seconds
Server load: -1.00 -1.00 -1.00
Total accesses: 326772 - Total Traffic: 4.2 GB
2.52 requests/sec - 33.8 kB/second - 13.4 kB/request
1 requests currently being processed, 63 idle workers

AcceptFilter http noneAcceptFilter https none

当这种情况发生时,error.log应该显示"asyncronous AcceptEx Failed"answers"Network name no longer available"。

这两个指令是Apache 2.2.x中Win32DisableAcceptEx的替代。