6ac620c22d764d29ac7459e9bc47665f25891919
By:
consman

I Do I Get Tomcat7 to Use Some Other Port Besides 8080 ?

August 8, 2015 1.1k views
DigitalOcean Firewall Security

http://MyDigitalOceanIPAdress:8080/MyApp was working great to start.

Now I changed /etc/tomcat7/server.xml like below, to use my new port (XXXX). However, when I try from the outside to get to my app using http://MyDigitalOceanIPAdress:XXXX/MyApp , then it just spins indefinitely.

There is something else I need to do. Can someone else tell me?
Thanks.

    <Connector port="XXXX" protocol="HTTP/1.1"
               connectionTimeout="20000"
               URIEncoding="UTF-8"
               redirectPort="8443" />
1 comment
  • Resolved!

    It turns out that this was due to the network outage that happened to be going on at the same time I was reconfiguring the port! :(

    I meant to say "**How **Do I Get Tomcat7 to Use Some Other Port Besides 8080 ?"

    The above steps actually do work.

1 Answer

The problem is that there was a network outage. The above steps actually do work. I also should have mentioned that you have to restart tomcat7 using sudo service tomcat7 start

Have another answer? Share your knowledge.