歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> 走出IIS的陰影在Apache上運行ASP

走出IIS的陰影在Apache上運行ASP

日期:2017/3/6 15:48:58   编辑:關於Unix
OpenASP 可以讓 Apache 支持 ASP,Open Asp支持Apache 1.3.0 - 1.3.6版本,大家下載時要注意和自己的 服務器 程序匹配。 其實Open Asp安裝很簡單,以下是主要步驟: 1. 把下面這行加入到apache/conf/httpd.conf中: LoadModule asp_module modules/apasp136.
  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。

Copyright © Linux教程網 All Rights Reserved