走出IIS的阴影在Apache上运行ASP

王朝asp·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

OpenASP 可以让 Apache 支持 ASP,Open Asp支持Apache 1.3.0 - 1.3.6版本,大家下载时要注意和自己的服务器程序匹配。

其实Open Asp安装很简单,以下是主要步骤:

1. 把下面这行加入到apache/conf/httpd.conf中:

LoadModule asp_module modules/apasp136.dll

其中modules/是笔者的模块目录,apasp136.dll是笔者所用的版本。

2. 把下面这行加入到apache/conf/mime.types中:

text/x-asp asp

这样服务器就可以解释扩展名为.asp的文件为ASP程序,当然你也可以自己定义扩展名。

此模块不仅可以装在Apache上,还能装在Netscape Server上:

1. In obj.conf

...

Init ...

Init ...

Init fn="load-modules" funcs="asp-proc" shlib=(path to nsasp.dll)

...

<Object name="default"

...

Service fn=asp-proc type=text/x-asp

Service ...

Service ...

...

</Object

2. In mime.types

type=text/x-asp exts=asp

这个模块还属于测试版,还有很多地方不完善,对以下方法不支持:

ObjectContext

Request.ClientCertificate

Request.TotalBytes

Request.BinaryRead

Response.CacheControl

Response.Charset

Response.ExpiresAbsolute

Response.IsClientConnected

Response.Pics

Response.Status

Server.ScriptTimeout

Session.CodePage

Session.LCID

Session.StaticObjects

Session_OnEnd

Application.StaticObjects

Application_OnEnd

Standard Base Components

而且现在不提供global.asa。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航