当前位置: 首页 > news >正文

找个人给我做电影网站好全国p2p网站建设

找个人给我做电影网站好,全国p2p网站建设,优化大师tv版,手机万能浏览器摘录自#xff1a;http://hi.baidu.com/fanfanwuji/blog/item/a7fd8928d49a7ef098250a06.html 花了点时间整理了一下ASP.NET Web.config配置文件的基本使用方法。很适合新手参看#xff0c;由于Web.config在使用很灵活#xff0c;可以自定义一些节点。所以这里只介绍一些比较…摘录自http://hi.baidu.com/fanfanwuji/blog/item/a7fd8928d49a7ef098250a06.html 花了点时间整理了一下ASP.NET Web.config配置文件的基本使用方法。很适合新手参看由于Web.config在使用很灵活可以自定义一些节点。所以这里只介绍一些比较常用的节点。 ?xml version1.0? !--注意: 除了手动编辑此文件以外您还可以使用 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的“网站”-“Asp.Net 配置”选项。 设置和注释的完整列表在 machine.config.comments 中该文件通常位于 WindowsMicrosoft.NetFrameworkv2.xConfig 中。-- !--Webconfig文件是一个xml文件configuration是xml文件的根节点由于xml文件的根节点只能有一个所以Webconfig的所有配置都是在这个节点内进行的。-- configuration !--指定配置节和命名空间声明。clear:移除对继承的节和节组的所有引用只允许由当前 section 和 sectionGroup 元素添加的节和节组。remove:移除对继承的节和节组的引用。 section:定义配置节处理程序与配置元素之间的关联。sectionGroup:定义配置节处理程序与配置节之间的关联。-- configSections     sectionGroup namesystem.web.extensions typeSystem.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version1.0.61025.0, Cultureneutral, PublicKeyToken31bf3856ad364e35       sectionGroup namescripting typeSystem.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version1.0.61025.0, Cultureneutral, PublicKeyToken31bf3856ad364e35         section namescriptResourceHandler typeSystem.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version1.0.61025.0, Cultureneutral, PublicKeyToken31bf3856ad364e35 requirePermissionfalse allowDefinitionMachineToApplication/       /sectionGroup     /sectionGroup   section namerewriter typeIntelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter /   !--用于url改写-- /configSections !--appSettings是应用程序设置,可以定义应用程序的全局常量设置等信息--      appSettings add key1 value1 / add keygao valueweipeng / add keyscon valueservera;databasenorthwind;uidsa;pwd123/     /appSettings !--连接字符串设置-- connectionStrings     add nameConnString connectionStringData SourceGAO;Initial CatalogHBWXDate;User IDsa;passwordsa/add     add name111 connectionString11111 / /connectionStrings !--指定应用子配置设置的资源并锁定配置设置以防止它们被子配置文件重写。page指定应用包含的配置设置的资源.allowOverride是否允许配置文件的重写提高配置文件的安全性-- location pathDefault.aspx allowOverridefalse     !--控制asp.net运行时的行为-- system.web     !--identity控制web应用程序的身份验证标识.--     identity impersonatefalse /     !--标识特定于页的配置设置如是否启用会话状态、视图状态是否检测用户的输入等。pages可以在计算机、站点、应用程序和子目录级别声明.     这里的几个属性的意思是默认主页为Index,主题是Default不检测用户在浏览器输入的内容中是否存在潜在的危险数据注该项默认是检测如果你使用了不检测一要对用户的输入进行编码或验证)在从客户端回发页时将检查加密的视图状态以验证视图状态是否已在客户端被篡改。(注该项默认是不验证禁用ViewState--     pages masterPageFileIndex themeDefault buffertrue enableViewStateMactrue validateRequestfalse enableViewStatefalse       !--controls 元素定义标记前缀所在的 register 指令和命名空间的集合--       controls/controls       !--将在程序集预编译期间使用的导入指令的集合--       namespaces/namespaces     /pages      !--默认错误页设置,mode:具有On,Off,RemoteOnly 3种状态customErrors modeOn 或 RemoteOnly 以启用自定义错误信息或设置为 Off 以禁用自定义错误信息。 为每个要处理的错误添加 error 标记。On 始终显示自定义(友好的)信息。Off 始终显示详细的 ASP.NET 错误信息。RemoteOnly 只对不在本地 Web 服务器上运行的用户显示自定义(友好的)信息。出于安全目的建议使用此设置以便 不向远程客户端显示应用程序的详细信息。defaultRedirect:用于出现错误时重定向的URL地址--     customErrors defaultRedirectErr.html modeRemoteOnly       !--特殊代码编号的错误从定向文件--       error statusCode403 redirectNoAccess.htm /       error statusCode404 redirectFileNotFound.htm /     /customErrors     !--配置调试和跟踪:下面配置的意思是启动调试(默认),捕获跟踪信息,要缓存的跟踪请求个数(15),跟踪结果的排列顺序--     trace enabledtrue localOnlyfalse pageOutputtrue requestLimit15 traceModeSortByCategory/     !-- 设置 compilation debugtrue 以启用 ASPX 调试。否则将此值设置为false 将提高此应用程序的运行时性能。设置 compilation debugtrue 以将调试符号(.pdb 信息)插入到编译页中。因为这将创建执行起来较慢的大文件所以应该只在调试时将此值设置为 true而在所有其他时候都设置为false。有关更多信息请参考有关调试 ASP.NET 文件的文档。设置默认的开发语言C#。batch是否支持批处理--     compilation debugtrue defaultLanguagec# batchfalse       assemblies         !--加的程序集引用每添加一个程序集就表示你的应用程序已经依赖了一个程序集你就可以在你的应用程序中使用了--         add assemblySystem.Web.Extensions, Version1.0.61025.0, Cultureneutral, PublicKeyToken31bf3856ad364e35/         add assemblySystem.Design, Version2.0.0.0, Cultureneutral, PublicKeyTokenB03F5F7F11D50A3A/         add assemblySystem.Web.Extensions.Design, Version1.0.61025.0, Cultureneutral, PublicKeyToken31BF3856AD364E35/         add assemblySystem.Windows.Forms, Version2.0.0.0, Cultureneutral, PublicKeyTokenB77A5C561934E089/         add assemblySystem.Web, Version2.0.0.0, Cultureneutral, PublicKeyTokenB03F5F7F11D50A3A/         add assemblySystem, Version2.0.0.0, Cultureneutral, PublicKeyTokenB77A5C561934E089/         add assemblySystem.Xml, Version2.0.0.0, Cultureneutral, PublicKeyTokenB77A5C561934E089/         add assemblySystem.Drawing, Version2.0.0.0, Cultureneutral, PublicKeyTokenB03F5F7F11D50A3A/         add assemblySystem.Data, Version2.0.0.0, Cultureneutral, PublicKeyTokenB77A5C561934E089/         add assemblySystem.Web.Services, Version2.0.0.0, Cultureneutral, PublicKeyTokenB03F5F7F11D50A3A/         add assemblySystem.Configuration, Version2.0.0.0, Cultureneutral, PublicKeyTokenB03F5F7F11D50A3A/       /assemblies       !--定义用于编译自定义资源文件的生成提供程序的集合。--       buildProviders         !----         add extension.aspx typeSystem.Web.Compilation.PageBuildProvider/         add extension.ascx typeSystem.Web.Compilation.UserControlBuildProvider/         add extension.master typeSystem.Web.Compilation.MasterPageBuildProvider/         add extension.asmx typeSystem.Web.Compilation.WebServiceBuildProvider/         add extension.ashx typeSystem.Web.Compilation.WebHandlerBuildProvider/         add extension.soap typeSystem.Web.Compilation.WebServiceBuildProvider/         add extension.resx typeSystem.Web.Compilation.ResXBuildProvider/         add extension.resources typeSystem.Web.Compilation.ResourcesBuildProvider/         add extension.wsdl typeSystem.Web.Compilation.WsdlBuildProvider/         add extension.xsd typeSystem.Web.Compilation.XsdBuildProvider/         add extension.rdlc typeMicrosoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version8.0.0.0, Cultureneutral, PublicKeyTokenb03f5f7f11d50a3a/       /buildProviders     /compilation       !--通过 authentication 节可以配置 ASP.NET 使用的 安全身份验证模式以标识传入的用户。Windows: IIS 根据应用程序的设置执行身份验证 (基本、简要或集成 Windows)在 IIS 中必须禁用匿名访问。,Forms: 使用基于窗体的验证方式,为用户提供一个输入凭据的自定义窗体(Web 页)然后 在您的应用程序中验证他们的身份用户凭据标记存储在 Cookie 中。Passport: 采用Passport 通过 Microsoft 的集中身份验证服务执行的它为成员站点提供单独登录和核心配置文件服务。,None: 不采用任何验证方式--     authentication modeForms       !--Name: 指定完成身份验证的Http cookie的名称.LoginUrl: 如果未通过验证或超时后重定向的页面URL一般为登录页面让用户重新登录。Protection: 指定 cookie数据的保护方式.       可设置为:All表示加密数据并进行有效性验证两种方式None表示不保护CookieEncryption表示对Cookie内容进行加密validation表示对Cookie内容进行有效性验证TimeOut: 指定Cookie的失效时间. 超时后要重新登录。--       forms name.ASPXUSERDEMO loginUrlLogin.aspx protectionAll timeout30/    /authentication     !--控制对 URL 资源的客户端访问如允许匿名用户访问。此元素可以在任何级别计算机、站点、应用程序、子目录或页上声明。必需与authentication 节配合使用。此处的意思是对匿名用户不进行身份验证。拒绝用户weipeng--    !-- 授权 此节设置应用程序的授权策略。可以允许或拒绝不同的用户或角色访问应用程序资源。通配符: * 表示任何人? 表示匿名(未经身份验证的)用户。--     authorization allow users*/!-- 允许所有用户 --     deny usersweipeng/     !--allow users[逗号分隔的用户列表]roles[逗号分隔的角色列表]/deny users[逗号分隔的用户列表]roles[逗号分隔的角色列表]/--       allow usersaa rolesaa /     /authorization     !--站点全球化设置,requestEncoding: 它用来检查每一个发来请求的编码.responseEncoding: 用于检查发回的响应内容编码.fileEncoding:用于检查aspx,asax等文件解析的默认编码,默认的编码是utf-8--     globalization requestEncodinggb2312 responseEncodinggb2312 fileEncodinggb2312 /     !--会话状态设置。mode: 分为off,Inproc,StateServer,SqlServer几种状态 mode InProc 存储在进程中特点具有最佳的性能速度最快,但不能跨多台服务器存储共享.mode StateServer 存储在状态服务器中特点:当需要跨服务器维护用户会话信息时使用此方法。但是信息存储在状态服务器上一旦状态服务器出现故障信息将丢失. modeSqlServer 存储在sql server中特点:工作负载会变大但信息不会丢失     stateConnectionString :指定asp.net应用程序存储远程会话状态的服务器名默认为本机。sqlConnectionString:当用会话状态数据库时在这里设置连接字符串。Cookieless:设置为flase时表示使用cookie会话状态来标识客户.timeout表示会话超时时间。--     sessionState modeInProc stateConnectionStringtcpip127.0.0.1:42424 sqlConnectionStringdata source127.0.0.1;Trusted_Connectionyes cookielessfalse timeout20/sessionState     !--为 ASP.NET 应用程序配置页的视图状态设置。设置要存储在页历史记录中的项数。--     sessionPageState historySize9/        !--配置asp.net http运行库的设置。可以在计算机站点应用程序和子目录级别声明     允许最多的请求个数100最长允许执行请求时间为80秒控制用户上传文件的大小,默认是4M。useFullyQualifiedRedirectUrl客户端重定向不需要被自动转换为完全限定格式。--     httpRuntime appRequestQueueLimit100 executionTimeout80 maxRequestLength40960 useFullyQualifiedRedirectUrlfalse/     !--httpModules在一个应用程序内配置 HTTP 模块。--     httpModules       add nameOutputCache typeSystem.Web.Caching.OutputCacheModule /       add nameSession typeSystem.Web.SessionState.SessionStateModule /       add nameWindowsAuthentication typeSystem.Web.Security.WindowsAuthenticationModule /       add nameFormsAuthentication typeSystem.Web.Security.FormsAuthenticationModule /       add namePassportAuthentication typeSystem.Web.Security.PassportAuthenticationModule /       add nameRoleManager typeSystem.Web.Security.RoleManagerModule /       add nameUrlAuthorization typeSystem.Web.Security.UrlAuthorizationModule /       add nameFileAuthorization typeSystem.Web.Security.FileAuthorizationModule /       add nameAnonymousIdentification typeSystem.Web.Security.AnonymousIdentificationModule /       !--自定义的URL重写,type基本上就是dll名--       add nameUrlRewriter typeIntelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter /       add nameProfile typeSystem.Web.Profile.ProfileModule /     /httpModules     !--httpHandlers用于根据用户请求的URL和HTTP谓词将用户的请求交给相应的处理程序。可以在配置级别的任何层次配置此节点也就是说可以针对某个特定目录下指定的特殊文件进行特殊处理。     add:指定映射到处理程序的谓词/路径。clear:移除当前已配置或已继承的所有处理程序映射。remove:移除映射到处理程序的谓词/路径。remove 指令必须与前一个 add 指令的谓词/路径组合完全匹配。该指令不支持通配符。--     httpHandlers       remove verb* path*.asmx/       add verb* path*.asmx validatefalse typeSystem.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version1.0.61025.0, Cultureneutral, PublicKeyToken31bf3856ad364e35/       add verb* path*_AppService.axd validatefalse typeSystem.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version1.0.61025.0, Cultureneutral, PublicKeyToken31bf3856ad364e35/       add verbGET,HEAD pathScriptResource.axd typeSystem.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version1.0.61025.0, Cultureneutral, PublicKeyToken31bf3856ad364e35 validatefalse/       add verbPOST,GET pathajaxpro/*.ashx typeAjaxPro.AjaxHandlerFactory, AjaxPro.2/     /httpHandlers     !--为 Web 应用程序使用的 Cookie 配置属性。domain:设置 Cookie 域名。httpOnlyCookies:在 Internet Explorer 6 SP1 中启用 HttpOnlyCookies Cookie 的输出。默认值为 false。requireSSL:获取一个指示是否需要安全套接字层 (SSL) 通信的值.--     httpCookies httpOnlyCookiesfalse requireSSLfalse/     !--控制 ASP.NET Web 服务及其客户端的行为。protocols:指定传输协议ASP.NET 可使用这些传输协议来解密 HTTP--     webServices       protocols         add/       /protocols     /webServices     !--为 Web 应用程序配置缓存设置。cache:定义全局应用程序缓存设置。outputCache :指定应用程序范围的输出缓存设置。outputCacheSettings:指定可以应用于应用程序中页的输出缓存设置。sqlCacheDependency:为 ASP.NET 应用程序配置 SQL 缓存依赖项。--     caching       cache disableMemoryCollection false disableExpiration false privateBytesLimit 0 percentagePhysicalMemoryUsedLimit 90 privateBytesPollTime 00:02:00/       !--设计需要以这种方式缓存的页时您需要向该页添加以下指令% OutputCache CacheProfileServerOnly %--       outputCacheSettings         outputCacheProfiles           add nameServerOnly duration60 varyByCustombrowser locationServer /         /outputCacheProfiles       /outputCacheSettings     /caching      /system.web /location !--网络设置authenticationModules指定用于对 Internet 请求进行身份验证的模块。connectionManagement指定与 Internet 宿主的连接的最大数目。defaultProxy配置超文本传输协议 (HTTP) 代理服务器。 mailSettings配置简单邮件传输协议 (SMTP) 邮件发送选项。requestCaching控制网络请求的缓存机制。settings配置 System.Net 的基本网络选项。-- system.net !--配置SMTP电子邮件设置-- mailSettings    smtp fromweipeng     network hostGao password userName /    /smtp /mailSettings    !--禁用所有缓存--    requestCaching disableAllCachingtrue/requestCaching    !--指定代理地址并对本地访问和 contoso.com 跳过代理。--    defaultProxy      proxy usesystemdefaultTrue proxyaddresshttp://192.168.1.10:3128 bypassonlocalTrue/      bypasslist        add address[a-z].contoso.com /      /bypasslist    /defaultProxy /system.net !--该节替换在 httpHandlers 和 httpModules 节中添加的与 AJAX 相关的 HTTP 处理程序和模块。该节使 IIS 7.0 在集成模式下运行时可使用这些处理程序和模块。在iis7.0 下运行 ASP.NET AJAX 需要 system.webServer 节。对早期版本的 IIS 来说则不需要此节。 -- system.webServer     validation validateIntegratedModeConfigurationfalse/     modules       add nameScriptModule preConditionintegratedMode typeSystem.Web.Handlers.ScriptModule, System.Web.Extensions, Version3.5.0.0, Cultureneutral, PublicKeyToken31BF3856AD364E35/     /modules     handlers       remove nameWebServiceHandlerFactory-Integrated/       add nameScriptHandlerFactory verb* path*.asmx preConditionintegratedMode typeSystem.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version3.5.0.0, Cultureneutral, PublicKeyToken31BF3856AD364E35/       add nameScriptHandlerFactoryAppServices verb* path*_AppService.axd preConditionintegratedMode typeSystem.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version3.5.0.0, Cultureneutral, PublicKeyToken31BF3856AD364E35/       add nameScriptResource preConditionintegratedMode verbGET,HEAD pathScriptResource.axd typeSystem.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version3.5.0.0, Cultureneutral, PublicKeyToken31BF3856AD364E35/     /handlers /system.webServer !--ASP.NET AJAX 中配置 ASP.NET 服务-- system.web.extensions     !--配置 JSON 序列化--     scripting       webServices         jsonSerialization maxJsonLength5000/       /webServices     /scripting /system.web.extensions !--对WCF的相关配置-- system.serviceModel     services       service nameWCFStudent.WCFStudentText behaviorConfigurationServiceBehavior         !-- Service Endpoints --         endpoint address bindingwsHttpBinding contractWCFStudent.IStuServiceContract           !-- 部署时应删除或替换下列标识元素以反映在其下运行部署服务的标识。删除之后WCF 将自动推导相应标识。--           identity             dns valuelocalhost/           /identity         /endpoint         endpoint addressmex bindingmexHttpBinding contractIMetadataExchange/       /service     /services     behaviors       serviceBehaviors         behavior nameServiceBehavior           !-- 为避免泄漏元数据信息请在部署前将以下值设置为 false 并删除上面的元数据终结点 --           serviceMetadata httpGetEnabledtrue/           !-- 要接收故障异常详细信息以进行调试请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息--           serviceDebug includeExceptionDetailInFaultsfalse/         /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转载于:https://www.cnblogs.com/lushuicongsheng/archive/2010/11/12/1875522.html
http://www.pierceye.com/news/150421/

相关文章:

  • 宿迁网站建设制作湖南常德邮编
  • 网站制作方案电子商务网站建设与维护的主要内容
  • 网站淘宝客怎么做的建网站前途
  • 宁波网站开发服务网页制作技巧
  • 中医网站风格网络规划设计师2022论文5月
  • 网站主办者单位有效证件电子件是什么怎么做免费的产品网站
  • 设计素材网站好融资吗网站设计需要需要用
  • 北京品牌营销的服务机构sem和seo有什么区别
  • 注册企业网站上海人才中心档案托管
  • 建设银行的网站为什么登不上公司员工培训方案
  • 网站形式wordpress 顶部工具栏
  • 网站前后台修改wordpress用户密码
  • 微信 公司网站 怎么做手机端视频网站模板下载
  • 何为响应式网站太原自助建站
  • 网站建设方案书怎么写安徽和住房建设厅网站
  • 北京市住房和城乡建设厅官方网站重庆百度seo整站优化
  • 备案ip 查询网站查询网站河南建筑职业技术学院
  • 均安公司网站建设免费建手机个人网站
  • 南京做网站的网络公司排名wordpress发邮件更新
  • 抽奖的网站怎么做美食类网站模板
  • 自己建一个网站难吗网络安全行业公司排名
  • 做招聘的h5用哪个网站企业网站需要多大空间
  • 织梦 公司网站模板html5网站开发的源码
  • 晋江网站建设公司电脑培训网
  • 电子商务网站开发的题网站关键词排名怎么提升
  • 在百度网站备案查询上显示未备案是什么意思wordpress资源分享主题
  • 夏县做网站郑州做商城网站
  • 网站首页推荐网络服务提供者发现用户利用其网络服务对未成年
  • 中外网站建设区别微信软文是什么意思
  • 苏州网站建设极简幕枫卫浴网站建设