Make your IIS server support JSP

Source: Internet
Author: User

1. Software Overview
This article describes how to use IIS + tomcat3.1 to support JSP and Servlet environments. Under normal circumstances, IIS does not support Servlet and JSP environments. By using a plug-in (plugin) that redirects IIS to Tomcat, we can use IIS to send all Servlet and JSP requests to Tomcat for execution to implement Servlet and JSP environments.
Ii. Document Definition
"Tomcat_home" -- assume the directory where Tomcat is installed for you.
Iii. Software Environment
Microsoft Windows NT 4.0 SP6a
In IIS 4.0
Tomcat 3.1
4. Obtain Required Software
Microsoft Windows NT Server 4.0, please prepare it yourself.
Microsoft Windows NT Option Pack (IIS installation), please prepare it yourself.
Tomcat plug-in of IIS server
Tomcat 3.1
5. Installation
(1) Please refer to the previous Article Install Tomcat 3.1 for win.
(2) Confirm that the Tomcat plug-in for IIS configuration is installed after the first step is successfully installed.
In the registry, add a new key value:
"Hkey_local_macine \ Software \ Apache Software Foundation \ Jakarta ISAPI redirector \ 1.0"
Add a string named "extension_uri" with the value of "/Jakarta/isapi_redirect.dll"
Add a string named "log_filei" with the value "full name of the log file l" (for example, c: \ Tomcat \ iisisapi. Log)
Add a string named "log_level" with the value of "the error level you want to record" (it can be one of the following values: Debug, inform, error, emerg)
Add a string named "worker_file" with the value "atat_home \ conf \ workers. properties" (replace the tomcat_home here with the full name of the tomcat installation path, for example, C: \ Tomcat)
Add a string named "worker_mount_file" with the value of "atat_home \ conf \ uriworkermap. properties" (replace tomcat_home with the full name of the tomcat installation path, for example, C: \ Tomcat)
Log on to the IIS console and select "web site"> right-click and choose Properties> ISAPI filter to add "isapi_redirect.dll" to the filter list.
Restart IIS and check that the newly added filter in ISAPI filter has an up green arrow.

(1) Add the JSP web Reference Directory (context)
Add a web reference directory to Tomcat. For more information, see this article.
Add a web reference directory to the iis isapi redirection plug-in
Open the "atat_home \ conf \ worker. properties" file and add the following configuration lines:
/"Web reference directory"/* = ajp12 (for example,/JSP/* = ajp12 ).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.