WEB开发 > WEB服务器配置方法 > Apache 2.2

Apache 2.X CGI模式:    

  • 在 httpd.conf 中加入:
    <Directory
    "C:/Tinysoft/tsl">
      AllowOverride
    None
      Options None
      Order allow,deny
      Allow from
    all
    </Directory>
      AddHandler tslscript-handler .tsl
      ScriptAlias /tsl/ "c:/Tinysoft/tsl/"
      Action tslscript-handler
    "/tsl/TSLCgi.exe"

       或者在 httpd.conf 中加入:
      AddHandler cgi-script .tsl

       并且在 .tsl 的第一行加入 #!C:/Tinysoft/tsl/tslCgi.exe