简体   繁体   中英

Getting HTTP/0.0 307 Temporary Redirect in connecting to my vps without typing https://

I ran a graphical version of v2ray( X-UI ) on one of my VPS on Hetzner, I also add an A record to bind the IP of this VPS to a DNS on my Cloudflare account.

Well with the below commands, I tried to get a certificate for this subdomain with acme.sh and using letsencrypt as CA provider:

    7  curl https://get.acme.sh | sh
    8  ~/.acme.sh/acme.sh --set-default-ca --server letsencrypt
    9  ~/.acme.sh/acme.sh --register-account -m myemail@mailserver.com
   10  ~/.acme.sh/acme.sh --issue -d sub.mydns.com --standalone
   11  ~/.acme.sh/acme.sh --installcert -d sub.mydns.com --key-file /root/private.key --fullchain-file /root/cert.crt

After adding the IP address of VPS to Cloudflare and setting it in DNS-only mode like the below image:

在此处输入图像描述

When I try to connect my panel without typing the https:// , I've just got the below page from Firefox:

在此处输入图像描述

And also return nothing in the Google Chrome browser(with or without typing https:// ):

在此处输入图像描述

But typing https:// shows me the panel successfully:

在此处输入图像描述

Does anyone have any idea why this is happening and how I can fix this?

Cloudflare does not allow all the ports. so make sure you are using ports that cloudfalre accepts. sth that i tried was using Web socket (ws) with port 2082. then go to ssl settings on cloud flare and deactivate all. its probably auto redirecting http to https and you are not supporting that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM