Solved

port problem

Posted on 2004-04-07
3
201 Views
Last Modified: 2010-04-01
Hi Experts,

Can I use port 80 instead of 8080 or 8081 for Tomcat / Apache ?
Can I map 80 into 8080 and 8081 ?

How ?

Is there any security risk of doing it ?

Thank you.
0
Comment
Question by:fpoyavo
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Kuldeepchaturvedi
Comment Utility
yeah you can sure use port 80 for tomcat
All you have to do is to modify this entry in server.xml which is located in tomcat4.1\conf dirctory

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080"               minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />

to
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="80"               minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />

One thing that you will have to take care is to see that port 80 is not already in use by some other application.
0
 
LVL 1

Author Comment

by:fpoyavo
Comment Utility
Kuldee,

How to find out if 80 is not used ? Will I get some warning while setting Tomcat / Apache to 80 if it is already used ?

Thank you.
0
 
LVL 19

Accepted Solution

by:
Kuldeepchaturvedi earned 500 total points
Comment Utility
well there are couple of ways..
you can go to the command prompt and fire a "netstat" command it will list all the ports that are currently in use by the system..

other way is when you try to start tomcat... it will give you a JVM_Bind error and will come out....
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
html form inside div 3 86
unit test DAO layer 1 133
issue with pdf generation 2 78
servlet init param and contect param 3 53
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now