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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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
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

Experts Exchange Solution brought to you by

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
Shalom CarmelCTOCommented:
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

Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

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" />
Shalom CarmelCTOCommented:
See if port 80 is bound to Apache.

ShalomC
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.

carydbAuthor Commented:
bglodde,
  IIS not running.   I will test on a different machine tonight to see the results there.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.