Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS会重定向到HTTP #1896

Closed
frhandlee opened this issue Sep 14, 2023 · 4 comments
Closed

HTTPS会重定向到HTTP #1896

frhandlee opened this issue Sep 14, 2023 · 4 comments
Labels
question Further information is requested

Comments

@frhandlee
Copy link

Question

我将打包后的页面部署到通过IIS 提供的HTTPS域名下,会自动重定下到http,有谁遇到过吗

Sample Code

配置文件如下

import { defineConfig } from 'dumi';

export default defineConfig({
outputPath: 'doc',
base: '/doc/',
publicPath: process.env.NODE_ENV === "production" ? "/doc/" : "/",
themeConfig: {
name: 'emrn-ui组件库文档',
logo: 'https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png',
},
favicons: ['https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png'],
resolve:{
codeBlockMode: 'passive'
}

});

@frhandlee frhandlee added the question Further information is requested label Sep 14, 2023
@PeachScript
Copy link
Member

dumi 不会做协议重定向的操作,有可能和域名解析服务、IIS 配置有关,需要自行排查

@PeachScript PeachScript closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2023
@frhandlee
Copy link
Author

dumi 不会做协议重定向的操作,有可能和域名解析服务、IIS 配置有关,需要自行排查

谢谢 我也是这么觉得的,但是别的项目就不会,我自己再看看

@cx91
Copy link

cx91 commented Jan 10, 2024

dumi 不会做协议重定向的操作,有可能和域名解析服务、IIS 配置有关,需要自行排查

谢谢 我也是这么觉得的,但是别的项目就不会,我自己再看看

你好,你解决这个问题没呢,我们这边也遇到这个问题了,部署用的nginx, 提供的HTTPS域名中途有次跳转到http地址导致在线demo加载不出来

@hanfei7788
Copy link

dumi 不会做协议重定向的操作,有可能和域名解析服务、IIS 配置有关,需要自行排查

谢谢 我也是这么觉得的,但是别的项目就不会,我自己再看看

你好,你解决这个问题没呢,我们这边也遇到这个问题了,部署用的nginx, 提供的HTTPS域名中途有次跳转到http地址导致在线demo加载不出来
我也碰到相同的问题了,请问您解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants