Answer the question
In order to leave comments, you need to log in
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
<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>
sudo a2ensite your_domain
sudo systemctl reload apache2
http://your_domain
Не удается получить доступ к сайтуНе удалось найти IP-адрес сервера your_domain.
Попробуйте сделать следующее:
Проверьте подключение к Интернету.
Проверьте настройки прокси-сервера, брандмауэра и DNS.
ERR_NAME_NOT_RESOLVED
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question