Enabling Default Document for Tomcat / IIS (ISAPI Redirector) connector
-
How can I configure index.jsp to be a default document in Tomcat using the IIS connector (ISAPI Redirector)? I've got the ISAPI redirector installed and working - for the most part. Specifiying the exact file (http://site/app/index.jsp) via the ISAPI redirector works. Going directly to Tomcat (http://site:8080/app/) works too. However, if I try: http://site/app/ It does not work. Where do I fix this? I'm mostly a WebSphere guy and this stuff is pretty simple to fix with that in the WS plugin file... How about Tomcat?
-
Answer:
For what it's worth, I do have index.jsp in my welcome-file list in the web.xml conf file, but that doesn't seem to be enough when using the redirector.
kuperman at Ask.Metafilter.Com Visit the source
Other answers
You need to add index.jsp as a default content page in IIS. This is done on the Documents tab in the properties of your IIS Web Site.
toomuch
toomuch, no dice. I tried that already ... Oh yeah, if it helps any, it's IIS 5 in Win2k, Tomcat 4.x.
kuperman
When you say it does not work, what do you mean? Is it giving a 404, Directory Listing Denied or something else? I would look in your IIS and JK logs (I presume you're using the JK connector) to see what requests are being made when you request http://site/app. You may have to change the verbosity of your JK logs.
toomuch
toomuch, I think it 404'd me, I'm going to doublecheck right quick.
kuperman
Can you confirm you are using JK? If so, what does your workers.properties file look like? You need to have a Url mapping that maps to the directory and not *.jsp.
toomuch
Yep, as is, 404'd. When I manually specify the index.jsp file, regular ol' 200 come across, all gravy. I'm using what I believe to be jk or jk2 (I guess, actually I was not the person who configured/installed it, I just am trying to clean up/complete it) - it's what's ever is referenced http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.html. The logs I have in C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\log don't give me a whole lot of info as to why it isn't working. On preview, the guy who installed this put in the workers.properties.minimal file.
kuperman
it would be helpful to look at your worker config files. you can email me at my address in my profile if you want. you need to look in the registry to see which properties file is being used. HKLM/Software/Apache Software Foundation/Jakarta Isapi Redirector/2.0 just a heads up jk2 is no longer being updated and you may want to upgrade to JK.
toomuch
Related Q & A:
- How to extract parts of (La)TeX document?Best solution by TeX - LaTeX
- How do I deploy WAR file to Tomcat 6.0?Best solution by Stack Overflow
- How to do lots of 301 Redirect (Tomcat?Best solution by Stack Overflow
- What is apache tomcat?Best solution by Yahoo! Answers
- How to install tomcat 7 in windows 7?Best solution by ntu.edu.sg
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.