【问题标题】:Redirect apache-tomcat not render via https重定向 apache-tomcat 不通过 h​​ttps 呈现
【发布时间】:2012-11-27 19:22:42
【问题描述】:

我正在将内容从 tomcat 重定向到 apache,重定向正常,但在某些时候失败,重定向正常但内容显示错误,样式中断,没有图像等。

在跟踪中出现类似“WARN [404_jsp:109] /favicon.ico

我认为可能是 AJP 协议有问题,有人遇到过同样的问题吗?

部分配置:

在 Apache 中:

LoadModule proxy_module modules/mod_proxy.so 
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so 
LoadModule ssl_module modules/mod_ssl.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so 

Include conf/extra/httpd-ssl.conf

SSLCertificateFile /usr/local/apache2/certs/file.crt
SSLCertificateKeyFile /usr/local/apache2/certs/file.key


ProxyPass / ajp://127.0.0.1:8009/
ProxyPassReverse / ajp://127.0.0.1:8009/

我已经生成了一个密钥库并将其放入 tomcat 中。

Tomcat 配置:

<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8050" protocol="HTTP/1.1" redirectPort="8443"/>


<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS"  />


<Connector maxThreads="150" port="8009" scheme="https"  clientAuth="false" protocol="AJP/1.3" redirectPort="8443"  />

我正在为 Liferay 门户做这件事,它正在运行一个 linux 虚拟机。

非常感谢。

【问题讨论】:

    标签: linux apache tomcat redirect liferay


    【解决方案1】:

    根据您提供的信息,我无法弄清楚问题可能出在哪里,但由于尚未有人回答,您可能想根据 Liferay Wiki 中的 this article 检查您所做的工作

    【讨论】:

    • 感谢您的回答,我之前看过这篇文章,但没有成功。
    猜你喜欢
    • 1970-01-01
    • 2020-04-26
    • 1970-01-01
    • 1970-01-01
    • 2018-01-10
    • 2021-04-12
    • 1970-01-01
    • 1970-01-01
    • 2012-04-29
    相关资源
    最近更新 更多