H2FB8

            Silence, your native tongue.

            Men in Black, 1997, 0:37:xx
            
Virtual Hosting, POC (proof of concept)
---------------------------------------

Machine: LUbuntu 16.10 64-bit, 
Hostname: CORTANA 
User: virtu with sudo

  # cat /etc/hosts

  192.168.1.214   red
  192.168.1.214   blue
  ..

  # apt-get install apache2

Confirm if the daemon is running and on what ports it binds:

  # systemctl status apache2
  # netstat -tlpn
  tcp6    0    0 :::80    :::*    LISTEN    3236/apache2

Lubuntu yakkety session
-----------------------

  root@CORTANA:~# cd /etc/apache2/sites-available/
  root@CORTANA:/etc/apache2/sites-available# ls
  000-default.conf  default-ssl.conf
  root@CORTANA:/etc/apache2/sites-available# cat 000-default.conf | tail
  <VirtualHost *:80>
      DocumentRoot "/var/www/html/red"
      ServerName red
  </VirtualHost>

  <VirtualHost *:80>
      DocumentRoot "/var/www/html/blue"
      ServerName blue
  </VirtualHost>
  root@CORTANA:/etc/apache2/sites-available# systemctl restart apache2
  root@CORTANA:/etc/apache2/sites-available# mkdir /var/www/html/red
  root@CORTANA:/etc/apache2/sites-available# mkdir /var/www/html/blue
  ..
  root@CORTANA:/var/www/html/red# cat index.html  
  <!DOCTYPE html>
  <html>
  <body>
  <h1>Rot</h1>
  <p>Rot</p>
  </body>
  </html>
  ..
  root@CORTANA:/var/www/html/blue# cat index.html
  <!DOCTYPE html>
  <html>
  <body>
  <h1>Blau</h1>
  <p>Blau</p>
  </body>
  </html>

  $ firefox http://red
  Rot
  $ firefox http://blue
  Blau

Links
-----

1. How to Install LAMP with PHP 7 and MariaDB 10 on Ubuntu 16.10

  http://www.tecmint.com/install-lamp-on-ubuntu-16-10/

2. Running several name-based web sites on a single IP address

  https://httpd.apache.org/docs/2.4/vhosts/examples.html




