• ADADADADAD

    iis如何默认访问https[ 网络知识 ]

    网络知识 时间:2024-11-20 12:07:42

    作者:文/会员上传

    简介:

    在iis中设置默认访问https的方法1.首先,在计算机中使用组合键“win+R”运行“Inetmgr”,打开iis管理器;2.进入到iis管理器页面后,在页面中选择对应的站点;3.在站点右侧菜单栏中,选

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。

    在iis中设置默认访问https的方法

    1.首先,在计算机中使用组合键“win+R”运行“Inetmgr”,打开iis管理器;

    2.进入到iis管理器页面后,在页面中选择对应的站点;

    3.在站点右侧菜单栏中,选择“URL重写”模块,并双击打开,添加规则;

    4.最后,规则添加好后,在Web.config文件中添加以下配置即可;

    <system.webServer>
    <rewrite>
    <rules>
    <rule name="redirect to https" stopProcessing="true">
    <match url="(.*)" />
    <conditions>
    <add input="{HTTPS}" pattern="^OFF$" />
    <add input="{HTTPS_HOST}" pattern="^(localhost)" negate="true" />
    </conditions>
    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>

    iis如何默认访问https.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载
    热门标签: httpsIIS