![](/img/trans.png)
[英]Error with an Apache in front of Tomcat using AJP connector and mod_proxy
[英]Error in Redirect from Apache to Tomcat using mod_proxy
我的服务器中有apache和Tomcat,即时通讯使用mod_proxy从Apache重定向到Tomcat ... apache在端口80上运行,tomcat在端口8080上运行,这是我的虚拟主机:
<VirtualHost *:80>
ServerName www.example.ir
ServerAlias example.ir
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/example
ProxyPassReverse / http://localhost:8080/example
<Location "/">
Order allow,deny
Allow from all
</Location>
</VirtualHost>
但是问题是当我尝试www.example.com时,出现以下错误:
HTTP状态404-/ exampleexample /
那我的配置怎么了? 谢谢,抱歉我的英语不好
您是否要执行Tomcat的示例Web应用程序? 如果是这种情况,请尝试以下配置:
ProxyPass / http://localhost:8080/examples/
ProxyPassReverse / http://localhost:8080/examples/
重新启动Apache之后,浏览至http://yourhost/
。
希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.