After I combine resin and iis, asp programs will not be available and the source code will be displayed? Solution
Source: Internet
Author: User
------------------------------------------------------------------------------ <Br>
Iis web is favored by many people because of its simple management and support for ASP. This section describes how to use resin to enable IIS to support jsp and servlet. <Br>
1. Install and configure iis and resin1.1 separately so that both of them can run normally. The installation paths of iis and resin1.1 are as follows: c: apache and c: esin1.1. <Br>
2. Configure IIS <br>
1. Copy iis_srun.dll to the IIS scripts directory & quot; c: inetpubscripts & quot; <br>
2. Create a configuration file (resin. ini) in the c: inetpubscripts directory to specify the location of the resin configuration file. <Br>
Resin. ini: <br>
<Br>
CauchoConfigFile c:/resin1.1/conf/resin. conf <br>
3. Configure resin <br>
& Lt; caucho.com & gt; <br>
& Lt; http-server app-dir = 'C: inetpubwwwroot' & gt; <br>
& Lt; servlet-mapping rl-pattern = '/servlets/* 'servlet-name = 'invoker'/& gt; <br>
& Lt; servlet-mapping rl-pattern = '*. xtp' ervlet-name = 'com. caucho. jsp. XtpServlet '/& gt; <br>
& Lt; servlet-mapping rl-pattern = '*. jsp' servlet-name = 'com. caucho. jsp. JspServlet '/& gt; <br>
& Lt;/http-server & gt; <br>
& Lt;/caucho.com & gt; <br>
IV. Test <br>
1. Run IIS and start the resin jsp Engine (run c: esin1.1insrun.exe) <br>
2. Put a jsp file (test. jsp) in the C: Inetpubwwwroot directory of IIS. <br>
Test. jsp: <br>
& Lt; % @ page language = java? & Gt; <br>
2 + 2 = & lt; % = 2 + 2% & gt; <br>
<Br>
Browse http: // localhost: port/test. jsp. You will see: 2 + 2 = 4 & lt; -- this result <br>
<Br>
Note: port is the port number. The debugging environment nt4.0 + iis + resin1.1 <br>
<Br>
<Br>
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