Solved

port problem

Posted on 2004-04-07
3
214 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
ID: 10777161
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
ID: 10777253
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
ID: 10777538
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
issue with pdf generation 2 88
HTML5 vs JSP - REST based application development 4 1,078
maven j2ee examles 2 56
throw exception 21 44
Adding Computers to AD groups through an SCCM Task Sequence
As a business owner, there are many things that keep you up at night. Profit margins, employee retention, human resource protocols, whether your product or service will remain competitive. When you own or manage a technology company that operates la…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

810 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