Why is there no access through HTTP but through HTTPS?

Studying the work with virtual machines, Ubuntu and other software... did Not immediately began to delve into the essence had a couple of days to smash your head! And that's sort of like everything set up, did initial setup, but for some reason there is no HTTP access, there are... HTTPS Ports 80 and 443 are open, the domain secured through cloudflare.comfirst, the Registrar has prescribed NS cloudflare, then it pointed to the Ip via an a record and NS prescribed address of the virtual machine itself... Why this could happen, where to look is? Thank you!5e483c9b18b60502389049.png
April 7th 20 at 11:55
1 answer
April 7th 20 at 11:57
Likely enabled redirection from http to https, you can check this:

curl http://lenta.ru -I
HTTP/1.1 301 Moved Permanently
Server: nginx/1.13.4
Date: Sat, 15 Feb 2020 20:11:28 GMT
Content-Type: text/html
Connection: keep-alive
Location: https://lenta.ru/
eemm, but as it is necessary to try? ))) I don't get it :\ - eduardo.Gottlieb commented on April 7th 20 at 12:00
@katrine_Reichert, in the console of UNIX use this command - line 1yu - Rudy commented on April 7th 20 at 12:03
@katrine_Reichert,
The first line is the command prompt. Curl is a utility under Linux/*BSD; but under Windows - I don't know, but still depends on the version.
The rest of the string is the output of this command.

About the same it is possible to obtain a telnet command to port 80 and typing commands in the HTTP Protocol. But with HTTPS, telnet will not work. - Jaylin.Hessel25 commented on April 7th 20 at 12:06
@justina36, @vanessa, talk I did not understand what to do with it
Enable succeeded: 
[stdout]
HTTP/1.1 301 Moved Permanently
Server: nginx/1.13.4
Date: Sun, 16 Feb 2020 04:04:57 GMT
Content-Type: text/html
Connection: keep-alive
Location: <a href="https://lenta.ru/">https://lenta.ru/</a>
Set-Cookie: is_mobile=0; path=/; domain=.lenta.ru


[stderr]
 % Total % Received % Xferd Average Speed Time Time Time Current
 Dload Upload Total Spent Left Speed

 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

---
Enable succeeded: 
[stdout]
HTTP/1.1 301 Moved Permanently
Date: Sun, 16 Feb 2020 04:07:13 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Set-Cookie: __cfduid=da9097be25880c8706175d3b366710bb71581826033; expires=Tue, 17-Mar-20 04:07:13 GMT; path=/; domain=.example.ru; HttpOnly; SameSite=Lax
Location: <a href="https://example.ru/">https://example.ru/</a>
CF-Cache-Status: DYNAMIC
Server: cloudflare
CF-RAY: 565ca7645fcc9fb8-IAD


[stderr]
 % Total % Received % Xferd Average Speed Time Time Time Current
 Dload Upload Total Spent Left Speed

 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
- eduardo.Gottlieb commented on April 7th 20 at 12:09
@katrine_Reichert, search the page it is downloaded to the location where the directory during a call this command - Rudy commented on April 7th 20 at 12:12
@katrine_Reichert, "HTTP/1.1 301 Moved Permanently" is a redirect to the new address. - Jaylin.Hessel25 commented on April 7th 20 at 12:15

Find more questions by tags Ubuntu