我如何重定向来自Apache Tomcat的? [英] How do I redirect from Apache to Tomcat?

查看:274
本文介绍了我如何重定向来自Apache Tomcat的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作我的第一个Java站点。我在80端口上,我可以在受到访问的站点(例如)123.4.5.6:8080当前的URL运行的Apache Tomcat在端口8080和Apache HTTPD。我想的删除从URL中的端口号之前,我指向新的IP域。

I'm working on my first Java site. I'm running Apache Tomcat on port 8080, and Apache HTTPD on port 80. The current URL that I can access the site at is (for example) 123.4.5.6:8080. I want to remove the port number from the URL before I point the domain at the new IP.

目前我只使用Apache的phpMyAdmin的时刻,但是我打算使用它的CGI脚本和其他的东西,一旦我弄清楚的mod_jk 等...所以我不想改变Tomcat的端口为80,关闭Apache的。

At the moment I am only using Apache for phpmyadmin, however I plan on using it for CGI scripts and other stuff once I figure out mod_jk etc... So I don't want to change Tomcat's port to 80 and turn off Apache.

我希望这是有道理的。

推荐答案

做事的正确方法是在80和Tomcat离开阿帕奇在8080和来自Apache使用(preferably mod_proxy的)一个插件来代理的Tomcat 。 mod_proxy的将只需要你10分钟设置。

The correct way to do things is to leave Apache at 80 and Tomcat at 8080 and use a plug in (preferably mod_proxy) to proxy Tomcat from Apache. mod_proxy would only take you 10 minutes to set up.

如何做是非常简单的遵循。

这篇关于我如何重定向来自Apache Tomcat的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆