运行Apache Tomcat端口8443的EC2实例不可访问 [英] EC2 instance running apache tomcat port 8443 not accessible

查看:160
本文介绍了运行Apache Tomcat端口8443的EC2实例不可访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台AWS EC2 ubuntu 14.04机器,并且该机器上安装了apache tomcat 7. 我在apache tomcat7上部署了一个Web应用程序并启动了服务器,但遇到了一个问题,即无法使用端口8080从外部访问运行apache tomcat7的EC2计算机. 然后我发现我们必须 https://serverfault.com/questions/666338/ec2-instance-running-apache-tomcat-not-accessible-from-outside/731513#731513 进行链接中存在的此操作,然后端口8080起作用. >

现在的问题是,如果我以这种方式访问​​我的Web应用程序https://{ipaddress}:8443,则SSL端口8443无法正常工作.

注意-我已经使用java keytool生成了一个证书,并在Tomcat server.xml中进行了配置

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS" keystoreFile="/home/ubuntu/mycert.crt"
           keystorepass="*****" keyAlias="tomcat" />

以及我的EC2安全组入站配置

有人可以让我知道我在做什么错吗?

解决方案

查看Catalina.out日志后,发现了问题,即在上面提到的tomcat7具有名为"keystorePass"的属性(P为大写字母)在keystorePass中),但在tomcat6中,"keystorepass"也可以使用. 由于此问题,密码设置不正确.

I have a AWS EC2 ubuntu 14.04 machine and apache tomcat 7 is installed on that machine. I deployed a web application on apache tomcat7 and started the server, I had an issue where EC2 machine running apache tomcat7 was not accessible from outside using the port 8080. Then I figured that we have to https://serverfault.com/questions/666338/ec2-instance-running-apache-tomcat-not-accessible-from-outside/731513#731513 do this that is present in the link, then port 8080 worked.

Now the issue is SSL port 8443 does not work, if I hit my web application in this manner https://{ipaddress}:8443.

Note - I have generated a certificate using java keytool and configured in the Tomcat server.xml

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS" keystoreFile="/home/ubuntu/mycert.crt"
           keystorepass="*****" keyAlias="tomcat" />

And my EC2 Security Groups Inbound Configurations

Can someone let me know what Im doing wrong?

解决方案

After looking into the Catalina.out log, I found the issue i.e. In the I mentioned above, tomcat7 has the property named as "keystorePass" (P is capital in keystorePass) but in tomcat6 "keystorepass" also works. Due to this issue, password was not getting rightly set.

这篇关于运行Apache Tomcat端口8443的EC2实例不可访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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