Score:0

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

ua flag

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:

enter image description here

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

enter image description here

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

enter image description here

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

enter image description here

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

in flag
If you’re using CloudFlare there is no need to create your own SSL certificates, as they can do that for you. There is also a setting in the CloudFlare options to auto-redirect all non-HTTPS web traffic so that you do not need to configure it on the web server. These two options will save you time and hassle.
Javad Nikbakht avatar
ua flag
Are the SSL certificates provided by Cloudflare free?Can I setup a vless config via tls with these SSL certificates?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.