Score:0

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

in 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 [email protected]
   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?

vidarlo avatar
ar flag
You're obviously not listening, or have a firewall blocking port 80 (Plain HTTP). You however give us *nil* config, so we don't know.
Javad Nikbakht avatar
in flag
What should I add to my question? And how can I check if a firewall block it? note that my panel is not serving on 80 port .
vidarlo avatar
ar flag
Your webserver config is the obvious starting point. In addition, don't redact IP's and dns names; we can probably glean useful information from attempting to connect ourself, via tools such as `curl` to give some more indications than your browsers give...
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.