主题:  如何让Apache支持asp?

荣誉斑竹

职务:普通成员
等级:1
金币:1.0
发贴:301
注册:2000/10/16 20:34:39
#12002/4/2 16:20:22
请问各位,何处有让Apache支持asp的插件?并且如何配置?谢谢各位



5DPHP版主

职务:版主
等级:2
金币:10.0
发贴:291
注册:2001/1/13 10:51:40
#22002/4/2 17:58:03
没用过....自己到GOOGLE上RESEARCH一下吧.



5D雷锋

职务:普通成员
等级:3
金币:10.0
发贴:1008
注册:2001/11/30 12:30:34
#32002/4/2 18:44:59
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)

...


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

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。

  在OpenAsp的主页上你还可以得到它的源代码,这样你可以开发自己需要的Asp模块。