Hello. I can't understand why the default site (index file) opens / var / www / html. I created my own config of the domain.name.conf type, here are these settings in it
<VirtualHost *:80> ServerName domain.name ServerAlias www.domain.name ServerAdmin admin@example.com DocumentRoot /home/user/domain.name/public_html/public <Directory /home/user/domain.name/public_html/public> AllowOverride All </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Then I turned it on sudo a2ensite domain.name.conf restarted Apache sudo service apache2 restart went by ip and the default site opens with 000-default.conf. Why? How to fix it?
sudo a2dissite 000-default.conf- aleks.andrhttp://domain.name- aleksandr barakin