[IIS + Tomcat integration (successful )]

Source: Internet
Author: User

Address: http://www.blogjava.net/b47248054/archive/2008/11/27/242963.html

 

 

Purpose:SetTomcatAndIISIntegrated and shared80Port. LetIISResolution*. Asp,*. Aspx,*. Jsp,ServletAnd*. DoFile;

Step 1: Make preparations.

In yourTomcatCreate a new directoryIIS.

CopyBin "isapi_redirector2.dllTo your$ Tomcat_home "bin.

CopyBin "isapi_redirector2.dllTo your$ Tomcat_home "IIS.

CopyConf "workers2.propertiesTo your$ Tomcat_home "ConfMedium (Confirm8009The port is not in use)

CopyConf "jk2.propertiesTo your$ Tomcat_home "ConfMedium

ModifyReg "Jakarta. RegContentC: "" tomcat5.5Change all to yourTomcat(It is recommended that there be no spaces in the directory ). Tomcat6.0 is the same

Double-clickIIS. RegFile to import the content to the Registry.

Step 2: ConfigureIIS

Create a virtual directory on the website you wantJakarta(Be sure to do this) and point toIISDirectory, remember to add executable permissions.

Add filterJakarta: Enter the"ISAPIFilter tab. Create a new filterJakarta. Follow these steps: click Add and enter the Filter Name.Jakarta, Executable file selectionIsapi_redirector2.dll. Click OK. Restart the site and check whether the arrow on the filter is green. If yes, it is initially successful.


In this case, you can useHttp: // localhost/AccessIIS.

StartTomcat,(BecauseWorkers2.propertiesThe file has been configured for youTomcatThe default two applicationsJSP-ExamplesAndServlets-examples)You can useHttp: // localhost/JSP-examples/AndHttp: // localhost/Servlets-examples/To accessTomcatThe following two applications.

Note that the address should be fully written and should not be discarded"/".

If you access otherTomcatThe following applications,

Only$ Tomcat_home "conf" workers2.propertiesFile, add similar[URI:/Servlets-examples/*]You can.

For exampleHttp: // localhost: 8080/job/AccessibleTomcatThe followingJobApplication, then we canWorkers2.properties, Add[URI:/job/*]You can.

Web service extensions need to be added for Windows2003 IIS6
Select isapi_redirector2.dll and set it to allow

NOTE: If problems occur during installation, delete all the files you have added.

Attach all files used.

By sofot

Softotto@126.com

Http://www.blogjava.net/b47248054

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.