run application without providing application name in apache+tomcat

Hi,

I have a website which is deployed in tomcat,at the front apache is implemented.
Application name is "Librarysystem" and is deployed in tomcat.
From apache the request is redirected using

ProxyPass  /Librarysystemajp://localhost:8009/Librarysystem
ProxyPassReverse  /Librarysystem ajp://localhost:8009/Librarysystem

As of now i need to type

http://localhost/Librarysystem to get the login page displayed.

I want that when i type
http://localhost

It should display the loginpage of the "Librarysystem".


how can i get it working.
RockingAsked:
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.

gheistCommented:
You need to run tomcat and apache on your workstation
0
RockingAuthor Commented:
this is obvious,didn't seem that this too is required to write that when we are using word localhost it means that the application is deployed on the my workstation itself.

What i need is configuration which needs to be done either at tomcat or apache side?
0
rrzCommented:
The easiest way to accomplish this is to move the ROOT folder(the preinstalled web app in the webapps folder) to somewhere else and rename your Librarysystem folder to ROOT.
0
Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

RockingAuthor Commented:
what if there is any other application already deployed in root.
What i need is configuration to redirect to "Librarysystem" .
0
gheistCommented:
Well for obvious reasons you must replace the ROOT application.
0
RockingAuthor Commented:
I strictly don't agree with " replace the ROOT application"

thre must be something in virtual host of the apache where we can redirect like in tomcat we can define the context ?
0
gheistCommented:
Renaming files should not be that hard. Yes, you can redirect any context by defining it in server.xml
0
RockingAuthor Commented:
if i configure in tomcat then how come apache come to know that he has to redirect?
0
RockingAuthor Commented:
these link goes to my question itself
0
gheistCommented:
Yes - you can put any application in place of the links and it will override website root in Apache
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
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
Apache Web Server

From novice to tech pro — start learning today.

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.