快捷搜索:  

打造WIN下完美全能服务器(APACHE+JSP+CGI+PHP+ASP+MYSQL)(3)


LoadModule jk2_module modules/mod_jk2.so
在D:\Apache2\conf目录下新建一个workers2.properties文件,内容如下:
[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess servers.
file=anon
# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=lb
[status:]
info=Status worker, displays runtime information
[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:
如果懒得写代码,将该文件夹下面的workers2.properties.sample改成workers2.properties即可。
写一个JSP文件,内容如下:
保存放置在D:\tomcat\webapps\examples目录下,打开网页http://127.0.0.1/examples/index.jsp,就可以看到Hello, world.字样,这个效果和使用地址http://127.0.0.1:8080/examples/index.jsp看到的页面是一样的,说明Apache和Tomcat已经整合成功。
5,安装iASP2.1.01
安装过程iASP2.1.01会自动找到JDK的安装路径,所以安装过程很很是简单,我们将其安装在d:/Instant文件夹下面。
主要是后面的配置:
第一步:代理服务(proxy)选择:instant asp native servlet support
第二步:WEB SERVER选择:apache。(可以不管它提示)
第三步:选择apache的配置文件:httpd.conf的位置。我的为:D:\Program Files\Apache Group\Apache2\conf\\httpd.conf
版本选择2.X(根据您的apache版本选择)。
proxy:如果您有固定ip,添入您的固定ip。如果没有,那就添:127.0.0.1。
port: 这是apache与iasp之间的代理接口。使用默认(9098)即可。
server manager port:远程管理端口,选择默认(9095)即可。
第四步:配置完成。
配置完成以后,程序会自动在apache的配置文件httpd.conf最后加入了以下语句:
# iASP Setting
LoadModule iasp_module "d:/Instant/bin/apache/win32/2.0/iasp.dll"
Alias /iasp "d:/Instant"
IaspConfig server "d:/Instant/properties/server.properties"
IaspConfig rules "d:/Instant/properties/rules.properties"
通过更改httpd.conf更改apache的默认首页:
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.asp
更改完毕后,保存,重启apache
执行:开始->程序->Instant ASP 2.1.01->Install iASP as NT Service
这样,iasp就被加到了win2000 server的服务中。
执行:开始->程序->Instant ASP 2.1.01->Start Instant ASP
这样,iasp就被立即打开。apache可以支持asp了!
从新启动Apache,发现如下:
这个主要是因为Iasp还不支持我们用的APACHE版本,问一个朋友要了一个支持apache_2.0.52的iasp.dll,替换d:/Instant/bin/apache/win32/2.0/iasp.dll,从新启动Apache成功,写一个ASP文件保存为index.asp.
Congradulations!
Instant ASP has worked for you!"
%>
打开网页http://127.0.0.1/index.asp
出现:
这个iasp.dll不是很好,如果你希望在Apache安装ASP,建议使用Apache低一点的版本,使其有支持的iasp.dll文件.
至此全能服务器环境安装完成,可以开建设网站了
顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论