I tried to change the default port on my Tomcat, with the server.xml
file, changing 8080
to 80
. But when I try to visit my application, it is not available. What am I doing wrong? Are there some security issues with Amazon EC2?
Switch to root user via sudo su -
command. In /usr/share/tomcat7/conf/tomcat7.conf
change TOMCAT_USER="tomcat"
to TOMCAT_USER="root"
. In /usr/share/tomcat7/conf/server.xml
change 8080
to 80
(and also 8443
to 443
if you’re a perfectionist).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With