• ADADADADAD

    虚拟机怎么使用https[ 建站问答 ]

    建站问答 时间:2024-12-01 19:05:22

    作者:文/会员上传

    简介:

    通过在虚拟机根目录下的web.config文件中添加以下配置即可使用https,具体方法如下:<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rule

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

    通过在虚拟机根目录下的web.config文件中添加以下配置即可使用https,具体方法如下:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name="301" stopProcessing="true">
    <match url="^(.*)$" ignoreCase="false" />
    <conditions logicalGrouping="MatchAll">
    <add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" />
    </conditions>
    <action type="Redirect" url="https://www.baidu.com/{R:1}" redirectType="Permanent" /> # www.baidu.com对应修改为您自已的域名,注释请自行删除,不要放入web.config文件内
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

    虚拟机怎么使用https.docx

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

    推荐度:

    下载
    热门标签: https虚拟机