I'm trying to set up a CGI based application (MapServer WMS), which only came with instructions on how to set it up on Apache and I'm having a hard time transposing those guidelines to IIS6.
Basically, I need to create a Virtual Directory that redirect to a CGI binary while passing two environment variables to the binary. In Apache, you would place the snippet below in your httpd.conf, but in IIS, I have no idea how to set those environment variables so they would only affect the Virtual Directory. Setting the variables as system envirnoment variables works for the WMS part but unfortunately has unwanted side-effects (eg. unability to use multiple mapfiles)
Alias /ogc/wms /usr/lib/cgi-bin/mapserv
<Location /xx/wms>
SetHandler cgi-script
SetEnv MS_MAPFILE_PATTERN "^/var/www/wms/xx/xx.map$"
SetEnv MS_MAPFILE /var/www/wms/xx/xx.map
</Location>