简体   繁体   中英

In IIS, how do I set environment variables for specific CGI scripts

I have two cgi scripts from a product I can't alter. One needs a specific Environment Variable to be set. The other should be left alone.

Is there a way, in IIS, to do the same thing as apache's SetEnv command just for one of the CGI scripts?

Ciao!

您可以使用两个不同的应用程序池,在不同的用户帐户下运行它们并设置基于用户的环境变量请参阅完整答案https://serverfault.com/questions/672726/in-iis7-is-it-possible-to-have -custom环境变量,每个Web站点%3E

It's been a year, and still haven't found a way to do this. It's hard to prove a negative, but I think this is as I'm getting in practice.

The workarounds for this include registry keys and system-wide variables. sigh

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM