CentOS 7服务器无法加载Web应用程序资源

我试图设置一个CentOS 7服务器来托pipe一个安全的html,php,js,webapp使用openssl 。 目前,我已经设置了一个定义端口80和端口443的虚拟主机文件。我有一个有效的SSL证书和密钥,并在虚拟主机443中定义了.crt.keypath。

我有一个几乎完全相同的Windows服务器上的configuration设置,按预期工作,我可以通过https导航没有问题。 我会期望相同的Linux服务器,但相反,当我通过端口443连接使用: https://example.com : https://example.com它将加载该网站,但无法加载额外的资源,如css,js文件,触发GET调用。

当我检查其中一个失败资源的networking选项卡时,会显示对https://example.com:80/nextpagehttps://example.com:80/min/?g=call的呼叫。 添加的端口80对我来说似乎很陌生。 它在Firefox中给出的消息是:

安全错误阻止资源被加载

Chrome在控制台中提供了一个错误:

无法加载资源:net :: ERR_SSL_PROTOCOL_ERROR

我怀疑这个问题是由于试图从80端口虚拟主机通过https加载文件。 虽然这可能没有任何意义。 在Windows服务器检查浏览器检查中的networking选项卡时,我看不到添加了:80资源文件。

Apache / httpd日志:

error_log – 重新启动apache / httpd

 [Thu Mar 02 10:51:20.601856 2017] [mpm_prefork:notice] [pid 23548] AH00170: caught SIGWINCH, shutting down gracefully [Thu Mar 02 10:51:21.654006 2017] [core:notice] [pid 24307] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Thu Mar 02 10:51:21.654913 2017] [suexec:notice] [pid 24307] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Mar 02 10:51:21.674313 2017] [auth_digest:notice] [pid 24307] AH01757: generating secret for digest authentication ... [Thu Mar 02 10:51:21.675173 2017] [ssl:warn] [pid 24307] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Thu Mar 02 10:51:21.692096 2017] [mpm_prefork:notice] [pid 24307] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.6.27 configured -- resuming normal operations [Thu Mar 02 10:51:21.692116 2017] [core:notice] [pid 24307] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' 

access_log – 导航到https://example.com

 [02/Mar/2017:10:56:25 -0500] "\x16\x03\x01" 400 226 "-" "-" [02/Mar/2017:10:56:25 -0500] "\x16\x03\x01" 400 226 "-" "-" [02/Mar/2017:10:56:25 -0500] "\x16\x03\x01" 400 226 "-" "-" [02/Mar/2017:10:56:25 -0500] "\x16\x03\x01" 400 226 "-" "-" [02/Mar/2017:10:56:25 -0500] "\x16\x03\x01" 400 226 "-" "-" 

ssl_access_log

 [02/Mar/2017:10:16:53 -0500] "GET / HTTP/1.1" 302 233 [02/Mar/2017:10:16:53 -0500] "GET /folder/?page=mypage HTTP/1.1" 200 25903 [02/Mar/2017:10:17:08 -0500] "GET /folder/?page=mypage HTTP/1.1" 200 25903 [02/Mar/2017:10:19:40 -0500] "GET / HTTP/1.1" 302 233 [02/Mar/2017:10:19:40 -0500] "GET /folder/?page=mypage HTTP/1.1" 200 25903 [02/Mar/2017:10:20:03 -0500] "GET /folder/?page=mypage HTTP/1.1" 200 25903 [02/Mar/2017:10:56:25 -0500] "GET /folder/?page=mypage HTTP/1.1" 200 25903 

你会注意到从时间戳到https的最新导航在ssl_access_log10:56:25显示, access_log随后跟着命中。 这似乎我不知道如何redirect到端口80虚拟主机的stream量…