Solved

IIS 5 + Tomcat - jsp served thru root, not a directory

Posted on 2003-12-02
3
319 Views
Last Modified: 2010-04-20
Hi,

I have IIS installed and running smoothly.  It has a website running on a header of sub.domain.com. It also runs a site on the
default site.

We now have a jsp app running on http://localhost/app.

We want to change tomcat so it responds to the host header of app.domain.com and not to use the /app bit.

Now, we changed the following - on the understanding it would sort it out.

Rename home>\tomcat\webapps\ROOT to home>\tomcat\webapps\ROOT_tomcat.
Rename home>\tomcat\webapps\app to home>\tomcat\webapps\ROOT.


Update home>\config\amber.properties.
Change the following lines:
doc_base=/app to doc_base=/
image_base=/app/images/ to image_base=/images/
command_base=/app/dscgi/ds.py/ to command_base=/dscgi/ds.py/


Modify the Tomcat connector configuration file for the specified web server.

Update the home>\tomcat\conf\ntiis\uriworkermap.properties file.

Change the following lines:
/app=$(default.worker) to /=$(default.worker)
/app/*=$(default.worker) to /*=$(default.worker)


Now - this is all very well, but I havent restarted IIS yet, but I was wondering if:

- The stuff we have done is correct?
- we need to anything to the server.xml to get it to see the app.domain.com
- should I set up a website in IIS to respond to the header app.domain.com? and set its home dir to home>\tomcat\webapps\ROOT
- there is anything else we would need?
0
Comment
Question by:mmc98dl1
3 Comments
 
LVL 1

Accepted Solution

by:
ackava earned 250 total points
ID: 10028271
Well the solution is here...

http://jspisapi.neurospeech.com , we had similar problem and trying to find solution but too complex method of tomcat's documentation lead us to develop our own solution called JspISAPI. The details of installation is given in the website.

It has features:
1) eliminate 8080 port from urls
2) redunce load on tomcat as images and other resources are handled by IIS
3) support http keep alive for jsp and servlets
4) easy setup for SSL by IIS, no hassle for setting up SSL for tomcat

- Akash Kava
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 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

12 Experts available now in Live!

Get 1:1 Help Now