Global variables within IIS Express

家住魔仙堡 提交于 2019-12-31 17:50:58

问题


I've just installed IIS Express, can anyone tell me where it gets the settings for the following variables?

%IIS_BIN%
%IIS_USER_HOME%
%IIS_SITES_HOME%
%SYSTEMDRIVE%

Thanks


回答1:


The following three environment variables are set by iisexpress.exe during the process startup.

  • %IIS_BIN% - refers to IIS Express installation folder (%PROGRAMFILES%\IIS Express)
  • %IIS_USER_HOME% - %USERPROFILE%\Documents\IISExpress
  • %IIS_SITES_HOME% - %USERPROFILE%\Documents\My Web Sites

%SYSTEMDRIVE% - is a standard windows system environment variable




回答2:


To "change" the paths for the %IIS_USER_HOME% and %IIS_SITES_HOME% values, please see my explanation here.




回答3:


%IIS_USER_HOME% - The IIS Express home directory for the user
%IIS_SITES_HOME% - The default home directory for sites
%IIS_BIN% - The location of the IIS Express binaries
%SYSTEMDRIVE% - The drive letter of %IIS_BIN%


来源:https://stackoverflow.com/questions/4845970/global-variables-within-iis-express

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!