在 Apache 上运行 ASP

由 xinmincui 在 05-09-2003 08:20 发表:

在 Apache 上运行 ASP

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)

...

 1<object name="default">   
 2  
 3...   
 4  
 5Service fn=asp-proc type=text/x-asp   
 6  
 7Service ...   
 8  
 9Service ...   
10  
11...   
12  
13</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。

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


由 Freebird 在 05-09-2003 11:00 发表:


好!谢谢,我正找呢,老兄真是“及时雨”呀


爱生活,爱拉登。

小站才刚完成,呵呵

http://finalbsd.go.3322.org/


由 ruochen 在 12-16-2003 13:42 发表:


现在有支持apache2.*的吗??


samaung753dfx+msikt333+duron1.2+128ram+GF2 400+st60G+ecom+samsung52cdrom

+rt8139

winxp+2000server+freebsd5.1+fedora1.0+debian3.0


由 Glue 在 12-16-2003 17:21 发表:


在window下用Apache+ASP

舍近求远。


-_-


由 emylekao 在 12-16-2003 17:31 发表:


?搞不懂为什么非要用这种不伦不类的东西。

我觉得,简单的可以用PHP,更好的可以用JSP,非要用ASP?哎!


www.bymg.com

关于Python/PHP、Linux和FreeBSD。

Linux/FreeBSD忠实爱好者

希望对推动Linux在中国的发展略尽微薄之力。

Fedora core 2 & FreeBSD 4.10


由 dato 在 12-16-2003 20:14 发表:


apasp136.dll

HOHO,这也加精了,晕,这个东东只支持1.3.x,不支持Asp3.0。

<fon

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus