Solved

port problem

Posted on 2004-04-07
3
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
gZip compression filter 2 188
project group option in netbeans equivalent term in eclipse 1 60
How to find missing packages when using Netbeans IDE 8.1 ? 19 84
countXY challenge 28 179
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
A big percent of today’s marketing activity is performed through the online environment. The marketing strategies that have existed a decade ago no longer relate to what’s happening today. We’re currently facing a revolutionary era, called the digit…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

737 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