Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the default port (8080) on Amazon EC to port 80

Tags:

amazon-ec2

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?

like image 627
Gillespie59 Avatar asked Jul 07 '11 09:07

Gillespie59


1 Answers

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).

like image 56
TPEACHES Avatar answered Nov 12 '22 14:11

TPEACHES