English 中文(简体)
• 如何利用MyEclipse Tomcat来实施HTTPS准入?
原标题:How to implement HTTPS access using MyEclipse Tomcat?

我正在开发一个使用MyEclipse的网站,运行服务器是MyEclipse Tomcat。 我愿增加访问我的网站的https。 我如何能够做到这一点?

问题回答

在您的Tomcat目录中,你将找到一个会议名录,在座标中,一个称为服务器的档案。 摘录XML的以下部分:

<Connector port=”8443″
    maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
    enableLookups=”true” disableUploadTimeout=”true”
    acceptCount=”100″ debug=”0″ scheme=”https” secure=”true”
    clientAuth=”false” sslProtocol=”TLS”
    keystoreFile=”../webapps/techtracer.bin”
    keystorePass=”ttadmin” />

如果它发表意见,那只是不满意。 你的包裹可能略有不同,但重要的是,它应当拥有港口=“8443”属性、安全=“真实性”以及与SSL有关的其他一些属性。

如果你在服务器上看不到这一点,那么就只能寻找8080港的“Connector”XML元素,并在下文中添加这一元素。

更多读物:http://techtracer.com/2007/09/ 12-up-sl-on-tom pre-in-3-easy-pans/" conf=“noestlow”>Setting UpSSL on Tom托马托卡 那里的信息比你可能更需要,因为你刚刚在当地再次开会。

Finally, when you access your project, you ll use the following URLs:

http://localhost:8080   # Unsecure, plain HTTP

https://localhost:8443   # Secure HTTPS/SSL version

注 两项议定书(http/https)和港口(8080/8443)的差异。





相关问题
Tomcat´s server.xml dynamic configuration

My web application uses the same database configuration as the application XYZ. I have a resource declaration for a context in server.xml, so I have a duplicated configuration (once for web ...

session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

JSP exception - class not found (tomcat)

I m setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root ...

热门标签