zoukankan      html  css  js  c++  java
  • Http,Https(SSL)的Url绝对路径,相对路径解决方案Security Switch 4.2的配置和使用 分类: ASP.NET 2014-11-05 12:51 97人阅读 评论(0) 收藏

    下载地址1:https://securityswitch.googlecode.com/files/SecuritySwitch%20v4.2.0.0%20-%20Binary.zip

    下载地址2:http://url.cn/SOzKPC

    1.将下载的"SecuritySwitch.dll"文件放在bin文件夹中,然后添加"SecuritySwitch"引用

    2.打开web.config文件为您的web应用程序,或网站,添加如下的配置(注意···线条所包含的地方就是配置)

    <configuration>
      <configSections>
        ......
        <!--配置securitySwitch-->
        <section name="securitySwitch" type="SecuritySwitch.Configuration.Settings, SecuritySwitch"/>
      </configSections>
      ......
      <!--配置securitySwitch-->
      <securitySwitch mode="RemoteOnly" baseInsecureUri="http://www.juqiandai.com" baseSecureUri="https://www.juqiandai.com" bypassSecurityWarning="true" ignoreAjaxRequests="false">
        <paths>
          <add path="~/secure/"/>
          <add path="~/reg/Logins.aspx" />
          <add path="~/Inc/CheckCode.aspx" />
        </paths>
      </securitySwitch>
      <system.web>
        <httpModules>
          ......
          <!--配置securitySwitch,for IIS <= 6.x, IIS 7.x + 经典模式, and Web Development Server (Cassini) -->
          <add name="SecuritySwitch" type="SecuritySwitch.SecuritySwitchModule, SecuritySwitch" />
        </httpModules>
      </system.web>
      <system.webServer>
        ......
        <!--配置securitySwitch-->
        <validation validateIntegratedModeConfiguration="false" />
        <modules>
          ......
          <!--配置securitySwitch,如果是 IIS 7.x + 集成模式 -->
          <add name="SecuritySwitch" type="SecuritySwitch.SecuritySwitchModule, SecuritySwitch" />
        </modules>
      </system.webServer>
    </configuration>

    3.将需要加密的页面或者路径添加到<paths></paths>中即可



    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    网络流量监控工具iftop
    CentOS6.X安装vsftpd服务
    CentOS 6.x版本升级Mysql
    CentOS 5.x版本升级Mysql
    CentOS 5.x版本升级PHP
    CentOS 6.X版本升级PHP
    Spring bean configuration inheritance
    cannot load such file -- openssl
    第八章、Linux 磁盘与文件系统管理
    Laravel Configuration
  • 原文地址:https://www.cnblogs.com/chenjinjian/p/4714271.html
Copyright © 2011-2022 走看看