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

无法将 HTTP 请求重定向为 HTTPS 请求 #101

Closed
jinzhi666 opened this issue Aug 15, 2023 · 1 comment
Closed

无法将 HTTP 请求重定向为 HTTPS 请求 #101

jinzhi666 opened this issue Aug 15, 2023 · 1 comment

Comments

@jinzhi666
Copy link

【反向代理】【导入nginx.conf】无法识别 return

# 原本
server {
    listen 80;
    server_name gitlab80.abc.top;
    return 301 https://$host$request_uri;
}
# 被识别为
server {
    listen 80;
    server_name gitlab80.abc.top;
}

缺少了 return 301 https://$host$request_uri; 无法将 HTTP 请求重定向为 HTTPS 请求

@cym1102
Copy link
Owner

cym1102 commented Aug 16, 2023

这个导入功能不完备, 没法完整的识别 不要太过于依赖导入

@cym1102 cym1102 closed this as completed Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants