Hi all I'm trying to change the port number of my Tomcat server installed on Ubuntu. For this I have changed the file server.xml
and made the following changes:
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443" />
But the problem is that whenever I try to open the localhost:8081
it is working fine but when I tried to open localhost:8080
but it is still accessible. Can someone please explain why this is happening?
Secondly when I made the default port 80 then tried localhost:80
or localhost
then it was not accessible. Again, why is this happening?