开发者

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

I have two cgi s开发者_开发知识库cripts 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!


You can use two different application pool, run them under different user accounts and set user-based environment variables See full answer here https://serverfault.com/questions/672726/in-iis7-is-it-possible-to-have-custom-environment-variables-per-web-site%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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜