I have an EC2 instance running Apache Tomcat.
If I access IpAddress:8080
it's working.
I want to change it to IpAddress:80
.
I've tried all the solutions given for this Question and nothing works for me.
Ports 8080, 80, 443 & 8443 are all allowed in security group inbound rules.
I'm using
- ubuntu-bionic-18.04-amd64-server-20210415
- apache-tomcat-9.0.54 installed via tar.gz
- changed port number in server.xml restarted the tomcat server, It didn't work.
sudo vi /var/lib/tomcat7/conf/server.xml
<Connector connectionTimeout="20000" port="80" protocol="HTTP/1.1" redirectPort="443"/>
- Tried below steps It didn't work.
sudo apt-get install authbind
sudo touch /etc/authbind/byport/80
sudo chmod 500 /etc/authbind/byport/80
sudo chown ubuntu /etc/authbind/byport/80
also I can't find #AUTHBIND=no
anywhere in my machine. I am logging in as ubuntu user.
I've spent almost 2 days for this.
What is the issue?