如果连接器端口是8081,如何从apache tomcat中的URL中删除端口号 [英] how to remove port number from URL in apache tomcat if connector port is 8081

查看:187
本文介绍了如果连接器端口是8081,如何从apache tomcat中的URL中删除端口号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在linux机器上运行了多个tomcat实例。所以有不止一个连接器端口用于不同的实例,如8080,8081,8082。我想从URL中删除端口号。



I am running multiple instance of tomcat on my linux machine. so there are more than one connector ports for different instance like 8080,8081,8082. I want to remove port number from URL.

例如: -


当前网址: - www.sushant.com:8081/

需要: - www.sushant.com/


请建议我我怎样才能做到这一点。

谢谢。

For example :-
Current url : - www.sushant.com:8081/
Needed :-www.sushant.com/
please suggest me how can i do this.
Thanks.

推荐答案

您应该考虑在服务器上使用代理。 apache.org上有一个非常好的教程,使用Apache Web服务器。

You should consider using a proxy on your server. There is a really good tutorial at apache.org, using an Apache Web Server.

http://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html

这使您可以通过端口80连接到您的服务器,端口80不会打印在浏览器的URL栏中。

This enables you to connect to your server via port 80, which is not printed in the url bar of your browser.

这篇关于如果连接器端口是8081,如何从apache tomcat中的URL中删除端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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