Eclipse WTP:如何在Tomcat上启用SSL? [英] Eclipse WTP: How do I enable SSL on Tomcat?

查看:143
本文介绍了Eclipse WTP:如何在Tomcat上启用SSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse WTP创建自己的server.xml文件,该文件放置在一些文件夹中,该文件夹为您的Web项目配置正在运行的tomcat实例。如果您双击服务器列表中的服务器,您将获得一个漂亮的屏幕,这样可以很容易地配置server.xml文件的某些方面。

Eclipse WTP creates its own server.xml file which it places in some folder which configures the tomcat instance you are running for your web project. If you double click on the server in the servers list you get a nice screen which makes it simple to configure some aspects of the server.xml file.

如何配置一个新的连接,以允许端口8443上的SSL连接。每当我手动编辑server.xml文件时,eclipse将使用其存储在配置的服务器属性页面中的设置来覆盖我的更改,并且似乎没有办法添加新的连接器从eclipse提供的接口。

How do I configure a new connection to allow SSL connections on port 8443. Everytime I edit the server.xml file manually, eclipse overwrites my changes with the settings it has stored in the server properties page of the configuration and it seems there is no way to add a new connector from the interface that eclipse provides.

这可能吗?以下是我要添加的连接器:

Is this possible? Here is the connector I want to add:

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
    maxThreads="150" scheme="https" secure="true"
    keystoreFile="D:\apache-tomcat-6.0.18\keystore\key.ssl" keystorePass="pass"
    clientAuth="false" sslProtocol="TLS" />


推荐答案

如果您已经创建了服务器,编辑它复制的server.xml模板。如果您使用项目资源管理器,则位于其他项目 - >服务器 - > Tomcat服务器名称 - > server.xml

If you've already created the server, you can edit the server.xml template it copies. If you use the project explorer, It is under Other Projects->Servers->Tomcat Server Name->server.xml

这篇关于Eclipse WTP:如何在Tomcat上启用SSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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