I want to execute my web app as http://localhost.
http://localhost
On a linux server you can just use this commands to reconfigure Tomcat to listen on port 80:
sed -i 's|port="8080"|port="80"|g' /etc/tomcat?/server.xml sed -i 's|#AUTHBIND=no|AUTHBIND=yes|g' /etc/default/tomcat? service tomcat8 restart