Used the information from here how to link a domain to vps? , but nothing really happened. I registered my own domain instead of localhost in hosts , there are files in sites-available and sites-enabled with the name of domain.ru.conf and content:

<VirtualHost *:80> DocumentRoot /var/www/домен ServerName домен </VirtualHost> 

In / var / www / domain put test index.html , but nothing happens on the domain. By IP-address I get into my first project, located in / var / www / html / .

What did I miss or where did I not go there? And why do I need ns1.domain and ns2.domain which a person gave me to register a domain?

Bundle: Apache2, PHP5, PostgreSQL

  • And you indicated dns ip server. This is done in the control panel where you bought the domain - Evgeniy Mikhalhenko
  • Yes. I started with this. IP for both ns indicated. - Vitali Krutko

0