Lab 7.3 A clarification of where to put what.
I am using Ubuntu 18.04.5 . First I did the easy bit, editing /etc/hosts by adding the IP Address I used in Lab 7.2 with a tab to namevhost.example.com directly under the existing IPv4 entries. I put my namevhost.conf file in the /etc/apache2/sites-enabled/ directory. Line 2 reads: DocumentRoot /var/www/html/index.html . Line 8 reads DocumentRoot /namevhost/ index.html . The index.html file went under the /namevhost directory. That took some figuring out but worked in the end. I got an error message chcon: failed to get security context of '/var/www/html/index.html': No data available , from the #chcon-R --reference=/var/www/html/index.html /namevhost command. I guess I might have the Document Root wrong. I took it to be the one I created in Lab 7.1 .