Solved

run application without providing application name in apache+tomcat

Posted on 2014-09-17
12
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

 

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
 

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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

626 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