Answer the question
In order to leave comments, you need to log in
Flask not connecting by domain, only by IP, how to fix it?
Good afternoon. I put flask on the host, I can connect by IP, but not by domain. And the domain is tied correctly.
From the server it responds, and even with the necessary ip.
When you follow the link to the site itself, specifying the ip\port
When you follow the domain to the site, specifying the domain\port
What could I have done wrong? Somehow I forgot to specify something?
Answer the question
In order to leave comments, you need to log in
Everything is fine there:
➜ ~ curl -v http://darklorian.site:5000
* Rebuilt URL to: http://darklorian.site:5000/
* Trying 45.141.102.132...
* TCP_NODELAY set
* Connected to darklorian.site (45.141.102.132) port 5000 (#0)
> GET / HTTP/1.1
> Host: darklorian.site:5000
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 302 FOUND
< Server: gunicorn
< Date: Tue, 13 Apr 2021 04:27:33 GMT
< Connection: close
< Content-Type: text/html; charset=utf-8
< Content-Length: 219
< Location: http://darklorian.site:5000/login
<
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
* Closing connection 0
<p>You should be redirected automatically to target URL: <a href="/login">/login</a>. If not click the link.%
➜ ~
I found out that for some reason it doesn’t work from a computer, it’s normal from a phone (when switching to LTE)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question