How to configure port 80 for tomcat in Ubuntu

Source: Internet
Author: User

Demo environment
Ubuntu 11.04 + tomcat 6


1. Familiar with tomcat configuration files
#/Etc/tomcat6/server. xml/tomcat configuration file

Open the configuration file and find the following section.
<Connector port = "80" protocol = "HTTP/1.1" connectionTimeout = "20000" URIEncoding = "UTF-8" redirectPort = "8443"/>

2. Modify the port
1. Open the tomcat configuration file
# Vi/etc/tomcat6/server. xml

2. Open the tomcat configuration file and quickly search by/8080

3. Modify the port and press I to change 8080 to 80.

4. Change # AUTHBIND = no in the last line of the configuration file to AUTHBIND = yes.

5. Press: wq to save and exit

3. Restart tomcat and check www.111cn.net
1. Restart the tomcat service.
#/Etc/init. d/tomcat6 restart

2. Check port
# Netstat-ant/view port usage

If Port 80 appears, it indicates OK. Try accessing it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.