我可以在端口443上安全地运行Tomcat,在8080上安全地运行Tomcat [英] Can I run Tomcat securely on port 443 and insecurely on 8080

查看:300
本文介绍了我可以在端口443上安全地运行Tomcat,在8080上安全地运行Tomcat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我解释一下我的情况。

Let me explain my situation.

目前,我在Tomcat 6上运行了很多应用程序,默认端口为8080.

Currently, I have a lot of applications running on Tomcat 6, on the default port 8080.

我刚刚创建了一些需要登录的应用程序。我将购买一个SSL证书来安装在这台服务器上。

I just created some applications that will need a log in. I'm going to buy an SSL certificate to install on this server.

我不喜欢使用端口8443的想法,因为它使URL更复杂。
如果我在端口80上运行Tomcat,我必须更改几十个链接,我必须以root身份运行Tomcat(而不是tomcat)。

I don't like the idea of using port 8443 because it makes the URL more complicated. If I run Tomcat on port 80, I'd have to change dozens of links and I'd have to run Tomcat as root ( rather than tomcat ).

在端口8080上运行不安全的应用程序但在端口443上安全运行是否有任何问题?

Is there any problem running the insecure applications on port 8080 but having the secure run on port 443?

我想我的设置将包含看起来像这样的URL :

I'm imagining my setup will have URLs that look like this:


http://mydomain.com:8080/report/controller?id=weather

https://mydomain.com/secure/controller?id=profile

这可能吗?

推荐答案

是的,完全没问题。只需配置连接器即可使用相应的端口。但是对于443我也猜测root也是必需的。

Yes, it's perfectly OK. Just configure the connectors to use the respective ports. But for 443 I'd guess root would be required as well.

这篇关于我可以在端口443上安全地运行Tomcat,在8080上安全地运行Tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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