IIS7 Inetpub的配置条目列表



失败请求跟踪日志文件的默认路径


%systemdrive%\inetpub\logs\FailedReqLogfiles.

%windir%\system32\inetsrv\appcmd set config -section:system.applicationHost/sites -siteDefaults.traceFailedRequestsLogging.directory:"D:\inetpub\logs\FailedReqLogFiles"






IIS日志文件的默认路径


%systemdrive%\inetpub\logs\logfiles.

%windir%\system32\inetsrv\appcmd set config -section:system.applicationHost/sites -siteDefaults.logfile.directory:"D:\inetpub\logs\logfiles"%windir%\system32\inetsrv\appcmd set config -section:system.applicationHost/log -centralBinaryLogFile.directory:"D:\inetpub\logs\logfiles"%windir%\system32\inetsrv\appcmd set config -section:system.applicationHost/log -centralW3CLogFile.directory:"D:\inetpub\logs\logfiles"






应用程序池配置文件的默认路径


%systemdrive%\inetpub\temp\appPools

reg add HKLM\System\CurrentControlSet\Services\WAS\Parameters /v ConfigIsolationPath /t REG_SZ /d D:\inetpub\temp\appPools






配置历史文件的默认路径


%systemdrive%\inetpub\history

%windir%\system32\inetsrv\appcmd set config -section:system.applicationhost/configHistory -path:D:\inetpub\history






经典ASP代码编译的默认缓存路径


"%systemdrive%\inetpub\temp\ASP Compiled Templates"

%windir%\system32\inetsrv\appcmd set config -section:system.webServer/asp -cache.disktemplateCacheDirectory:"D:\inetpub\temp\ASP Compiled Templates"






IIS对响应进行压缩的文件缓存路径


"%systemdrive%\inetpub\temp\IIS Temporary Compressed Files"

%windir%\system32\inetsrv\appcmd set config -section:system.webServer/httpCompression -directory:"D:\inetpub\temp\IIS Temporary Compressed Files"






IIS默认站点的物理路径:


%systemdrive%\inetpub\wwwroot.

%windir%\system32\inetsrv\appcmd set vdir "Default Web Site/" -physicalPath:D:\inetpub\wwwroot






IIS自定义错误页面的存储路径:


%systemdrive%\inetpub\custerr

%windir%\system32\inetsrv\appcmd set config -section:httpErrors /[statusCode='401'].prefixLanguageFilePath:D:\inetpub\custerr

%windir%\system32\inetsrv\appcmd set config -section:httpErrors /[statusCode='403'].prefixLanguageFilePath:D:\inetpub\custerr

%windir%\system32\inetsrv\appcmd set config -section:httpErrors /[statusCode='404'].prefixLanguageFilePath:D:\inetpub\custerr

%windir%\system32\inetsrv\appcmd set config -section:httpErrors /[statusCode='405'].prefixLanguageFilePath:D:\inetpub\custerr

%windir%\system32\inetsrv\appcmd set config -section:httpErrors /[statusCode='406'].prefixLanguageFilePath:D:\inetpub\custerr

%windir%\system32\inetsrv\appcmd set config -section:httpErrors /[statusCode='412'].prefixLanguageFilePath:D:\inetpub\custerr

%windir%\system32\inetsrv\appcmd set config -section:httpErrors /[statusCode='500'].prefixLanguageFilePath:D:\inetpub\custerr

%windir%\system32\inetsrv\appcmd set config -section:httpErrors /[statusCode='501'].prefixLanguageFilePath:D:\inetpub\custerr

%windir%\system32\inetsrv\appcmd set config -section:httpErrors /[statusCode='502'].prefixLanguageFilePath:D:\inetpub\custerr






通知服务软件包或其他安装程序wwwroot和ftproot路径已更改


reg add HKLM\Software\Microsoft\inetstp /v PathWWWRoot /t REG_SZ /d D:\inetpub\wwwroot

reg add HKLM\Software\Microsoft\inetstp /v PathFTPRoot /t REG_SZ /d D:\inetpub\ftproot








原文出处:


http://blogs.iis.net/thomad/archive/2008/02/10/moving-the-iis7-inetpub-directory-to-a-different-drive.aspx



标签: windows, iis7

相关文章

评论已关闭