D
D
Denis2020-08-17 18:42:59
Debian
Denis, 2020-08-17 18:42:59

The site does not enter by name, how to fix it?

Good. There is a server on debian 10 with white static ip.
I registered a domain in ru-center and free dns in 1cloud. Apsche2 is up on the server.
Delegated to 1cloud. Site linserv.ru
When you visit the site by ip, it normally enters. When you try to access the site by domain name, it gives a 404 error.
Previously, as soon as I registered a domain, I logged in both by ip and by domain name. At some point, I stopped accessing the domain name.
I tried to remove Apache and install it again, the result is the same - 404.
On the server, as I registered the domain, I did not make any settings, I immediately went by the domain name after installing Apache with default settings.
Where to dig, why doesn't it go by domain name?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin ™, 2020-08-17
@Energoblock

If you have the correct ip address of your server in the A record of your domain, then you need to set up Apache Virtual Host .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question