Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

windows

iis

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!

like image 849
docwhat Avatar asked Jan 19 '26 08:01

docwhat


1 Answers

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

like image 168
blfbt Avatar answered Jan 22 '26 06:01

blfbt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!