J2EE adding name questions

Hello,

Please let me know if I am asking in  the wrong TA.

I am a J2EE programmer. I have deployed my application successfully to Tomcat and it works fine by specifying like http://localhost:8080/MyWebApp. Now, how can I add the name to it so that it is accessible within the LAN by specifying http://intranet.david.com/MyWebApp or http://intranet.david.com:8080/MyWebApp

I may be interested in both Linux and Windows 2000.

Thanks
David

LVL 16
suprapto45Asked:
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.

girionisCommented:
YOu need to change the <host> element in your server.xml file to represent the host the request is coming from.
0

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
girionisCommented:
And you should better ask this to the Java TA.
0
suprapto45Author Commented:
Thanks girionis,

At first, I thought that this is networking configuration ;). Is it only changing the <host> in the server.xml?

David
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

girionisCommented:
Yes, as long as the rest can find the dns you will input.
0
suprapto45Author Commented:
let me google them for a sec. Do you have any good URL for it?

David
0
suprapto45Author Commented:
Do I need to  use Apache as well?

I will be going for few hours now

David
0
girionisCommented:
You only need to use Tomcat as you are already using it. As for a url, have a look here: http://www.onjava.com/pub/a/onjava/2002/07/31/tomcat.html that explains briefly the server.xml file.
0
girionisCommented:
BTW I will be away for the next week, so I won't be able to answer any more questions. If you need clarifications hopefully some other expert will jump in.
0
suprapto45Author Commented:
Do not worry girionis,

Your answer is enough for me. I will approve your answer soon.

David
0
suprapto45Author Commented:
Thanks girionis,

Appreciate it.

David
0
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
Networking

From novice to tech pro — start learning today.