N
N
natoje-zlo2021-03-06 14:31:39
LAMP
natoje-zlo, 2021-03-06 14:31:39

ERR_NAME_NOT_RESOLVED - why is the virtual host not working?

I create a virtual host

1. sudo mkdir /var/www/your_domain
2. sudo chown -R $USER:$USER /var/www/your_domain
3.

sudo nano /etc/apache2/sites-available/your_domain.conf

4.
<VirtualHost *:80>
ServerName your_domain
ServerAlias www.your_domain
ServerAdmin [email protected]
DocumentRoot /var/www/your_domain
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

5. sudo a2ensite your_domain
6. sudo systemctl reload apache2

I enter in the browserhttp://your_domain

Не удается получить доступ к сайтуНе удалось найти IP-адрес сервера your_domain.
Попробуйте сделать следующее:

Проверьте подключение к Интернету.
Проверьте настройки прокси-сервера, брандмауэра и DNS.
ERR_NAME_NOT_RESOLVED


What could be the problem?
index page starts on localhost but not on created host

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question