Why do I have to type 8080 to view my webpage on localhost.

I am running tomcat on Windows Xp and what I'd really like to do is allow people to access my site without having to type 8080 after the domain name.

I have searched the net for hours and have come up with nothing.

I figure there must be some kind of configuration setting in Tomcat, but I mam just not that familiar with it.


Thanks in advance.
carydbAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
BogoJokerCommented:
Hi carydb,

8080 for the port?  Is your tomcat setup for port 8080 instead of just port 80?

Joe P
0
 
bgloddeCommented:
As long as you don't have anything else on port 80 ~

The main configuration file for Apache Tomcat is "server.xml" in the <tomcat>/conf directory. Open it with a text editor and change the default http binding port to 80 instead of 8080. This way you don’t have to type :8080 at the end of your URL every time. Search for the string port="8080" and then replace 8080 with 80.

Restart Tomcat :)

If something else has control of port 80 (like IIS), you'll receive the exception: java.net.BindException: Address already in use
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
shalomcCTOCommented:
If you have Apache, use the mod_jk nodule to integrate Apache http server and Tomcat.
If you do not have Apache, I suggest that you get one and place it on front of your Tomcat.

ShalomC

0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
carydbAuthor Commented:
bglodde,
Below is the only place I found 8080 and I changed it to 80, but now my tomcat server will not launch.  ANy ideas?   I don't even get a reason in the log file.

       <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="80" minProcessors="5" maxProcessors="75"                      <<= change from 8080 to 80
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />
0
 
shalomcCTOCommented:
See if port 80 is bound to Apache.

ShalomC
0
 
bgloddeCommented:
Do you have IIS installed? If so, it's definitely bound to port 80. You'd have to stop that service (net stop w3svc), then start Tomcat.
Also, try launching Tomcat from a new command window - this will allow you to see if you get that BindException. If you click the batch file, it'll close the command window before you can see the stack trace.

0
 
carydbAuthor Commented:
bglodde,
  IIS not running.   I will test on a different machine tonight to see the results there.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.