Solved

run application without providing application name in apache+tomcat

Posted on 2014-09-17
12
289 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 61

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
 

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 61

Expert Comment

by:gheist
ID: 40330984
Well for obvious reasons you must replace the ROOT application.
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

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 61

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 61

Expert Comment

by:gheist
ID: 40347681
0
 

Author Comment

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Read about why website design really matters in today's demanding market.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now