IIS 站点配置文件
2024-10-20 18:49:46
IIS 站点配置文件
C:/Windows/System32/inetsrv/config/applicationHost.config
配置文件示例:
<system.applicationHost>
<!-- 应用程序池配置 列队大小 回收时间 .net版本 -->
<applicationPools>
<add name="DefaultAppPool" queueLength="" managedRuntimeVersion="v4.0">
<recycling>
<periodicRestart time="00:00:00" />
</recycling>
<processModel idleTimeout="00:00:00" />
</add>
<add name="ASP.NET v4.0" managedRuntimeVersion="v4.0" />
<add name="ASP.NET v4.0 Classic" managedRuntimeVersion="v4.0" managedPipelineMode="Classic" />
<add name="test" queueLength="" managedRuntimeVersion="v4.0">
<processModel idleTimeout="10:00:00" />
<recycling>
<periodicRestart time="00:00:00" />
</recycling>
</add>
<add name="test2" queueLength="" autoStart="true" managedRuntimeVersion="v4.0">
<processModel idleTimeout="10:00:00" />
<recycling>
<periodicRestart time="00:00:00" />
</recycling>
</add> <applicationPoolDefaults>
<processModel identityType="ApplicationPoolIdentity" />
</applicationPoolDefaults>
</applicationPools> <listenerAdapters>
<add name="http" />
<add name="net.tcp" identity="S-1-5-80-3579033775-2824656752-1522793541-1960352512-462907086" />
<add name="net.pipe" identity="S-1-5-80-2943419899-937267781-4189664001-1229628381-3982115073" />
<add name="net.msmq" identity="S-1-5-80-89244771-1762554971-1007993102-348796144-2203111529" />
<add name="msmq.formatname" identity="S-1-5-80-89244771-1762554971-1007993102-348796144-2203111529" />
</listenerAdapters>
<!-- 开启 iis 日志 -->
<log>
<centralBinaryLogFile enabled="true" directory="%SystemDrive%\inetpub\logs\LogFiles" />
<centralW3CLogFile enabled="true" directory="%SystemDrive%\inetpub\logs\LogFiles" />
</log>
<!-- 设置iis站点 配需虚拟目录 -->
<sites>
<site name="test" id="" serverAutoStart="true">
<application path="/" applicationPool="test">
<virtualDirectory path="/" physicalPath="D:\wwwroot\test" />
<virtualDirectory path="/html2" physicalPath="D:\wwwroot\html2" />
<virtualDirectory path="/html3" physicalPath="D:\wwwroot\html3" />
</application>
<!-- test 站点下 设置 应用程序 -->
<application path="/server2" applicationPool="test">
<virtualDirectory path="/" physicalPath="D:\wwwroot\server2_html4" />
<virtualDirectory path="/html" physicalPath="D:\wwwroot\html" />
</application>
<!-- 配置协议端口 链接超时 10s -->
<bindings>
<binding protocol="http" bindingInformation="*:80:" />
<binding protocol="https" bindingInformation="*:443:" />
</bindings>
<limits connectionTimeout="00:00:10" />
</site>
<!-- 设置站点2 配置虚拟目录 应用程序server3 -->
<site name="test2" id="" serverAutoStart="true">
<application path="/" applicationPool="test2">
<virtualDirectory path="/" physicalPath="D:\wwwroot\test2" />
</application>
<application path="/server3" applicationPool="test2">
<virtualDirectory path="/" physicalPath="D:\wwwroot\server3" />
<virtualDirectory path="/html" physicalPath="D:\wwwroot\server3-html" />
</application>
<bindings>
<binding protocol="https" bindingInformation="*:10443:" />
</bindings>
<limits connectionTimeout="00:00:10" />
</site>
<!-- iis 默认日志 默认开启 -->
<siteDefaults>
<logFile logFormat="W3C" directory="%SystemDrive%\inetpub\logs\LogFiles" />
<traceFailedRequestsLogging directory="%SystemDrive%\inetpub\logs\FailedReqLogFiles" />
</siteDefaults>
<applicationDefaults applicationPool="DefaultAppPool" />
<virtualDirectoryDefaults allowSubDirConfig="true" />
</sites> <webLimits /> </system.applicationHost> <system.webServer> <asp /> <caching enabled="true" enableKernelCache="true">
</caching> <cgi />
<!-- 默认首页 -->
<defaultDocument enabled="true">
<files>
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
</files>
</defaultDocument> <directoryBrowse enabled="false" /> <fastCgi />
编辑配置文件自动生成IIS站点文件;
注意文件权限。
最新文章
- JavaScript –类型之我晕
- Delphi XE5 与其他版本共存
- Qt Focus事件,FocusInEvent()与FocusOutEvent()
- poj1159 dp最长公共子串
- Integer to Roman
- CentOS6.4安装VNC
- Linux进程管理知识整理
- 快速解决js开发下拉框中blur与click冲突
- svn客户端的安装与中文版本语言库
- 混合拉普拉斯分布(LMM)推导及实现
- [LeetCode] Maximum Average Subarray I 子数组的最大平均值
- 关于非旋转treap的学习
- 003.[python学习] 简单抓取豆瓣网电影信息程序
- centos7部署DNS-1
- _spellmod
- java接口定义和作用
- centos7配置vsftpd服务器
- 二值化方法:Kittler:Minimum Error Thresholding
- 【转】ubuntu中没有/etc/inittab文件探究
- saltstack基础篇
热门文章
- Equalizing Two Strings CodeForces - 1256F (思维)
- oracle查询包含在子表中的主表数据
- .net Dapper 实践系列(4) ---数据查询(Layui+Ajax+Dapper+MySQL)
- mqtt client api: 阻塞API
- Python进阶(十一)----包,logging模块
- 两种方法实现在HTML页面加载完毕后运行JS
- 仿百度图片首页--HTML+CSS练手项目1【Table】
- react diff
- 基于webpack的前端工程化开发解决方案探索(二):代码分割与图片加载
- 140款Android开源优秀项目源码