简体   繁体   English

将带有反向代理的Apache(2.4)SSL站点加载到Tomcat(6.0)时出现问题

[英]Issue loading an Apache (2.4) SSL site with Reverse Proxy to Tomcat (6.0)

I've been running a site for the past 3 years with out any issues. 在过去三年中,我一直在运营一个网站,没有任何问题。 The current SSL certificate was applied the past December. 当前的SSL证书是在去年12月应用的。 It is running on the FreeBSD 10 operating system. 它在FreeBSD 10操作系统上运行。 Apache is configured as a reverse proxy passing to Tomcat 6.0. 将Apache配置为传递给Tomcat 6.0的反向代理。 As of this week the initial loading of pages has become extremely slow and does not leave any messages for the user. 从本周开始,页面的初始加载变得非常缓慢,并且没有为用户留下任何消息。 Nothing seems to stand out in my logs either. 在我的日志中似乎也没有任何异常。 I will try to post the configuration below in hopes someone with a fresh set of eyes sees something I'm overlooking. 我将尝试在下面发布配置,以希望新手看到的东西能被我忽略。 There have been no modifications to the configuration since the site was stood up. 自站点站起来以来,没有对配置进行任何修改。 If you need any additional info I'll be happy to provide. 如果您需要任何其他信息,我们将很乐意提供。

Thanks 谢谢

 <VirtualHost *:443> # General setup for the virtual host DocumentRoot "/usr/local/apache-tomcat-6.0/webapps" ServerName hsc.myissinc.com ServerAdmin support@myissinc.com ServerSignature Off Timeout 60 #KeepAlive On ErrorLog /var/log/apache2/ajp.error.log LogLevel warn CustomLog /var/log/apache2/ajp.log combined RewriteEngine On #RewriteOptions inherit ProxyVia On ProxyRequests Off ProxyPreserveHost Off #ProxyPassReverseCookieDomain localhost hsc.myissinc.com ProxyPass /easehsc/PublicTempStorage/ http://localhost:8080/easehsc/PublicTempStorage/ retry=10 acquire=3000 connectiontimeout=300 timeout=300 Keepalive=on ProxyPassReverse /easehsc/PublicTempStorage/ http://localhost:8080/easehsc/PublicTempStorage/ ProxyPass /easehsc/ http://localhost:8080/easehsc/ retry=10 acquire=3000 connectiontimeout=300 timeout=300 Keepalive=on ProxyPassReverse /easehsc/ http://localhost:8080/easehsc/ ProxyPass / http://localhost:8080/ retry=10 acquire=3000 connectiontimeout=300 timeout=300 Keepalive=on ProxyPassReverse / https://localhost:8080/ # SSL Engine Switch: # Enable/Disable SSL for this virtual host. SSLEngine on SSLProxyEngine on # Server Certificate: SSLCertificateFile "/root/sslCA/myissinc.cer" # Server Private Key: SSLCertificateKeyFile "/root/sslCA/myissinc.key" # Server Chain File (Intermediate Cert) SSLCertificateChainFile "/root/sslCA/myissincint.cer" </VirtualHost> 

Turns out the issue was not with the Apache configuration nor tomcat at all. 事实证明,问题根本与Apache配置无关,也不与tomcat有关。 The web app was calling a REST API that was suddenly taken offline due to getting DDoS attack. 该Web应用程序正在调用REST API,由于受到DDoS攻击,该API突然脱机。 We commented this call out and all works great. 我们对此通话进行了评论,并且一切正常。 Thanks for those who looked at this and made suggestions. 感谢那些看过这个并提出建议的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM