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
Solved

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

Posted on 2003-12-02
3
332 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
website file permissions 4 77
Need to redirect request from IIS server to old Apache Server. 3 140
Autoresponder for Whole Domain in Plesk/Cpanel 2 86
Link failure 16 31
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
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…

809 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