Jehoshuah
Jehoshuah

Reputation: 701

How to change port form 8080 to 80 with Apache Tomcat/8.0.29 in Ubuntu 14.04?

The answers given in How to change the port of Tomcat from 8080 to 80? and Tomcat7 bind to port 80 fails in Ubuntu 14.04LTS works good for tomcat7, but as I couldn't do a 'apt-get' to install tomcat8, the files created by default during the installation of tomcat7 at /etc/default/ couldn't be found while installing tomcat8 manually.

Is there any other way to change port form 8080 to 80 after manually installing tomcat8 on Ubuntu 14.04 EC2?

Thanks in advance.

Upvotes: 2

Views: 3441

Answers (2)

Adriano Goulart
Adriano Goulart

Reputation: 21

If you install tomcat8 with apt-get , take a look at /etc/default/tomcat8

Theres a directive at the end of the file : AUTHBIND=yes

Set it to yes

Upvotes: 2

Jehoshuah
Jehoshuah

Reputation: 701

What I did is very simple and it worked. I copied and pasted my tomcat folder to /etc and of course changed the Connector port from 8080 to 80 in tomcat/conf/server.xml.

I got few tips from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=99847 where he suggested :- Moving /etc/default/tomcat to /etc and use the defaults in /etc/init.d/tomcat instead.

Upvotes: 0

Related Questions