http://support.sas.com/cgi-bin/htmSQL/myinput/myfile.hsql
, you can use http://support.sas.com/myinput/myfile.hsql
and the Web server automatically invokes htmSQL to process the input
file.
# AddHandler allows you to map certain file extensions to "handlers", # actions unrelated to filetype. These can be either built into the server # or added with the Action command (see below) # Format: AddHandler action-name ext1 AddHandler htmSQL .hsql # Action lets you define media types that execute a script whenever # a matching file is called. This eliminates the need for repeated URL # pathnames for oft-used CGI file processors. # Format: Action media/type /cgi-script/location # Format: Action handler-name /cgi-script/location Action htmSQL /cgi-bin/htmSQL
<configuration> <system.webServer> <handlers> <add name="ScriptMap1" path="broker.exe" verb="*" modules="CgiModule" scriptProcessor="c:\inetpub\scripts\broker.exe" resourceType="File" allowPathInfo="true" /> <add name="ScriptMap2" path="htmSQL.exe" verb="*" modules="CgiModule" scriptProcessor="c:\inetpub\scripts\htmSQL.exe" resourceType="File" allowPathInfo="true" /> </handlers> </system.webServer> </configuration>
scripts
directory or a cgi-bin
directory, you need to create one. After
you create this directory, on the Virtual Directory tab, specify Scripts and Executables
for the value of Execution Permissions.
Web Service Extensions
folder. The Web Service Extensions
folder is under the folder
that specifies the name of your machine. For example, if your machine
name is SUSAN2, then there should be three folders under SUSAN2 (called Application Pools
, Web Sites
, and Web Service Extensions
).
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\ScriptMap]
regedit
) to add the following string values:".hsql"="c:\directory_for_htmSQL_executable\htmSQL.exe" ".hsq"="c:\directory_for_htmSQL_executable\htmSQL.exe"