让你的IIS服务器支持JSP_MySQL
IIS
一.软件简介
本文主要讲述如何用IIS+Tomcat3.1支持JSP及servlet环境。正常情况下IIS不支持servlet及JSP环境。我们通过使用一个IIS到Tomcat重定向的插件(plugin)使用IIS能够将所有的servlet及JSP请求发送到Tomcat执行以实现servlet及JSP环境。
二.文档定义
"tomcat_home"--假定为你安装tomcat的目录。
三.软件环境
Microsoft Windows NT 4.0 SP6a
IIS 4.0
Tomcat 3.1
四.获得所需软件
Microsoft Windows NT Server 4.0,请你自行准备。
Microsoft Windows NT Option Pack(安装IIS),请你自行准备。
IIS server的Tomcat插件
Tomcat 3.1
五.安装
(1)请参考前面的文章,安装Tomcat 3.1 for win。
(2)确认第一步安装成功后,安装配置IIS的Tomcat插件
在注册表中,增加一个新的键值:
"HKEY_LOCAL_MACINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0"
增加一个名为"extension_uri"的字符串,值为"/jakarta/isapi_redirect.dll"
增加一个名为"log_filei"的字符串,值为"日志文件的文件全名l"(例如c:\tomcat\IISisapi.log)
增加一个名为"log_level"的字符串,值为"你想记录的error级别"(可以是以下值中的一个:debug,inform,error,emerg)
增加一个名为"worker_file"的字符串,值为"tomcat_home\conf\workers.properties"(将这里的tomcat_home替换成你安装tomcat的路径全名,例如c:\tomcat)
增加一个名为"worker_mount_file"的字符串,值为"tomcat_home\conf\uriworkermap.properties"(将这里的tomcat_home替换成你安装tomcat的路径全名,例如c:\tomcat)
进入IIS管理控制台,选中"WEB站点"->按右键->选中属性->isapi筛选器中将"isapi_redirect.dll"加入到筛选器列表中。
重新启动IIS,确认在isapi筛选器中我们新加的筛选器有一个向上的绿色箭头。
(1)加上jsp的web引用目录(Context)
在Tomcat里加上一个web引用目录,具体步骤请看本区文章
加入一个web引用目录到IIS ISAPI 重定向插件
打开"tomcat_home\conf\worker.properties"文件,加入如下配置行:
/"web引用目录"/*=ajp12(例如/jsp/*=ajp12)。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Converting an HTML file to a URL requires a web server, which involves the following steps: Obtain a web server. Set up a web server. Upload HTML file. Create a domain name. Route the request.

Reasons for Tomcat garbled characters: 1. Character set mismatch; 2. HTTP response header is not set correctly; 3. Filter or encoder configuration error; 4. Web page encoding is incorrect; 5. Other reasons (including server-side language, database encoding and proxy server issues).

To add a server to Eclipse, follow these steps: Create a server runtime environment Configure the server Create a server instance Select the server runtime environment Configure the server instance Start the server deployment project

According to news from this website on July 23, ASUS has launched a variety of server and workstation-level products powered by AMD EPYC 4004 series processors. Note from this site: AMD launched the AM5 platform and Zen4 architecture EPYC 4004 series processors in May, offering up to 16-core 3DV-Cache specifications. ASUSProER100AB6 server ASUSProER100AB6 is a 1U rack server product equipped with EPYC Xiaolong 4004 series processor, suitable for the needs of IDC and small and medium-sized enterprises. ASUSExpertCenterProET500AB6 workstation ASUSExpertCenterProET500AB6 is a

The steps to deploy the WAR package to Tomcat are as follows: Copy the WAR package to the webapps directory of Tomcat. Start the Tomcat server and it will automatically deploy the WAR package. Access the application by entering the application's context path into the browser.

To access the page after Tomcat is started, you need to: start the Tomcat server; determine the port number (default 8080); splice the URL, including IP address, port number and page path; use a web browser to access the spliced URL; identify the Tomcat welcome page; Use the same format to access other pages.

C++ function naming convention follows camel case naming or Pascal naming. It is recommended to use descriptive, concise function names that avoid abbreviations and special characters. Overloaded functions can be distinguished by differentiating parameters, using suffixes, or namespaces. Function naming conventions that have single-letter names, are ambiguous, are overly specific, or contain special characters should be avoided.

Use most text editors to open XML files; if you need a more intuitive tree display, you can use an XML editor, such as Oxygen XML Editor or XMLSpy; if you process XML data in a program, you need to use a programming language (such as Python) and XML libraries (such as xml.etree.ElementTree) to parse.
