开发者

Run jsp in eclipse on specific port and ssl

开发者 https://www.devze.com 2022-12-23 12:15 出处:网络
I have used Eclipse 3.4 to create a Dynamic Web Project.I have also configure开发者_开发知识库d my server to use port 8443 with ssl.If I start my server I can access my test.jsp by going to it\'s addr

I have used Eclipse 3.4 to create a Dynamic Web Project. I have also configure开发者_开发知识库d my server to use port 8443 with ssl. If I start my server I can access my test.jsp by going to it's address

  https://localhost:8443/TestContext/test.jsp

In eclipse, I have installed this server and added my project to the server. If I Run test.jsp it always launches as

  http://localhost:8080/TestContext/test.jsp

My question is: How can I set up eclipse to run this on https://localhost:8443/ rather than the default 8080? Thanks in advance.


You should have a project called "Servers". There your tomcat should have its folder - for example "Tomcat 6.0.20 at localhost-config". There is server.xml there, in which you can enable SSL.

When you enable the SSL, the server accepts requests on port 8443 as well as on 8080. The server is not run on a port - it accepts connections on multiple ports. So just type https://localhost:8443/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号