M
M
mt. NATS2020-02-15 21:48:36
ubuntu
mt. NATS, 2020-02-15 21:48:36

Why is there no access via HTTP, but there is via HTTPS?

I'm learning how to work with virtual machines, ubuntu and other software... I didn't immediately start to delve into the essence, I had to break my head for a couple of days! And it seems like I installed everything, did the initial setup, but for some reason there is no access via HTTP, while there is via HTTPS ... Ports 80 and 443 are open, the domain is fixed via cloudflare.com , first I registered NS cloudflare with the registrar , further there I indicated Ip through the A record and registered the NS addresses of the virtual machine itself ... Why could this happen, where should I look? Thank you!5e483c9b18b60502389049.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Vasilyev, 2020-02-15
@vasilyevmn

Most likely, a redirect from http to https is enabled, you can check it like 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/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question