Solved

run application without providing application name in apache+tomcat

Posted on 2014-09-17
12
297 Views
Last Modified: 2014-10-05
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.
0
Comment
Question by:Rocking
  • 5
  • 5
12 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40329197
You need to run tomcat and apache on your workstation
0
 

Author Comment

by:Rocking
ID: 40329430
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
 
LVL 27

Expert Comment

by:rrz
ID: 40329572
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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 

Author Comment

by:Rocking
ID: 40330961
what if there is any other application already deployed in root.
What i need is configuration to redirect to "Librarysystem" .
0
 
LVL 62

Expert Comment

by:gheist
ID: 40330984
Well for obvious reasons you must replace the ROOT application.
0
 

Author Comment

by:Rocking
ID: 40331812
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
 
LVL 62

Expert Comment

by:gheist
ID: 40331957
Renaming files should not be that hard. Yes, you can redirect any context by defining it in server.xml
0
 

Author Comment

by:Rocking
ID: 40334963
if i configure in tomcat then how come apache come to know that he has to redirect?
0
 
LVL 62

Expert Comment

by:gheist
ID: 40347681
0
 

Author Comment

by:Rocking
ID: 40348220
these link goes to my question itself
0
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 40348301
Yes - you can put any application in place of the links and it will override website root in Apache
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Shopping Cart 2 84
Domain Service Not Responding 14 30
Designing forms 3 18
what is the best Integrated development environment 2 21
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

828 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