gpt4 book ai didi

java - Tomcat 7 和 Apache2 连接器无法正常工作

转载 作者:行者123 更新时间:2023-11-28 23:37:27 25 4
gpt4 key购买 nike

首先,我将我的应用程序作为 ROOT 放在 tomcat7 中,所以它就像 localhost:8080/

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="UTF-8"
/>
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" keystoreFile="/var/lib/tomcat7/conf/allegroTransaction.keystore" keystorePass="spec123ut"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />

<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

第二个是我的 apache2 配置:

NameVirtualHost test.domian.com:80
Listen 80
<VirtualHost test.domian.com:80>

ServerName test.domian.com
DocumentRoot "/var/www/elo"

ProxyRequests Off
ProxyPreserveHost On

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / ajp://127.0.0.1:8009/
#ProxyPassReverse / http://127.0.0.1:8080/

</VirtualHost>

现在我在错误日志中看到了问题:

[Sun Apr 27 16:24:23 2014] [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

但是一切看起来都不错,有什么想法吗?

最佳答案

看起来您在 httpd.conf 中缺少以下行:

LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

关于java - Tomcat 7 和 Apache2 连接器无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23324588/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com