小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

Web.config配置文件詳解3

 XXG學(xué)習(xí)園 2012-09-21

<!--禁用所有緩存-->

<requestCaching disableAllCaching="true"></requestCaching>

<!--指定代理地址,并對本地訪問和 contoso.com 跳過代理。-->

<defaultProxy>

<proxy usesystemdefault="True" proxyaddress="http://192.168.1.10:3128" bypassonlocal=
"True"
/>


<bypasslist>

<add address="[a-z]+".contoso".com" />

</bypasslist>

</defaultProxy>

</system.net>

<!--該節(jié)替換在 httpHandlers 和 httpModules 節(jié)中添加的與 AJAX 相關(guān)的 HTTP 處理程序和模塊。該節(jié)使 IIS
7.0 在集成模式下運(yùn)行時(shí)可使用這些處理程序和模塊。在iis7.0 下運(yùn)行 ASP.NET AJAX 需要 system.webServer

節(jié)。對早期版本的 IIS 來說則不需要此節(jié)。
-->


<system.webServer>

<validation validateIntegratedModeConfiguration="false"/>

<modules>

<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.Scri
ptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856
AD364E35"
/>


</modules>

<handlers>

<remove name="WebServiceHandlerFactory-Integrated"/>

<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
type
="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>


<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondit
ion
="integratedMode" type
="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Exte
nsions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>


<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="Script
Resource.axd"
type
="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Ve
rsion=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>


</handlers>

</system.webServer>

<!--ASP.NET AJAX 中配置 ASP.NET 服務(wù)-->

<system.web.extensions>

<!--配置 JSON 序列化-->

<scripting>

<webServices>

<jsonSerialization maxJsonLength="5000"/>

</webServices>

</scripting>

</system.web.extensions>

<!--對WCF的相關(guān)配置-->

<system.serviceModel>

<services>

<service name="WCFStudent.WCFStudentText" behaviorConfiguration="ServiceBehavior">

<!-- Service Endpoints -->

<endpoint address="" binding="wsHttpBinding" contract="WCFStudent.IStuServiceContract">

<!-- 部署時(shí),應(yīng)刪除或替換下列標(biāo)識元素,以反映在其下運(yùn)行部署服務(wù)的標(biāo)識。刪除之后,WCF 將自動(dòng)推導(dǎo)相應(yīng)
標(biāo)識。
-->


<identity>

<dns value="localhost"/>

</identity>

</endpoint>

<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>

</service>

</services>

<behaviors>

<serviceBehaviors>

<behavior name="ServiceBehavior">

<!-- 為避免泄漏元數(shù)據(jù)信息,請?jiān)诓渴鹎皩⒁韵轮翟O(shè)置為 false 并刪除上面的元數(shù)據(jù)終結(jié)點(diǎn) -->

<serviceMetadata httpGetEnabled="true"/>

<!-- 要接收故障異常詳細(xì)信息以進(jìn)行調(diào)試,請將以下值設(shè)置為 true。在部署前設(shè)置為 false 以避免泄漏異常信息-->

<serviceDebug includeExceptionDetailInFaults="false"/>

</behavior>

</serviceBehaviors>

</behaviors>

</system.serviceModel>

<!--URL重定向-->

<rewriter>

<rewrite url="~/user/u(.+).aspx" to="~/user/index.aspx?r=$1" />

<rewrite url="~/ask/q(.+).aspx" to="~/home/ask/content.aspx?id=$1" />

<rewrite url="~/blog/b(.+).aspx" to="~/home/blog/article.aspx?r=$1" />

<rewrite url="~/news/n(.+).aspx" to="~/home/news/content.aspx?nid=$1" />

<rewrite url="~/default.aspx" to="~/home/ram/net.aspx" />

</rewriter>

</configuration>

    本站是提供個(gè)人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多