Virtual hosts

Your Apache installation currently serves at least http://sdi....mi.hdm-stuttgart.de/xy123 and http://sdi....mi.hdm-stuttgart.de/manual. Move these to virtual host definitions by:

  1. Define two DNS aliases xy123 and manual for your virtual machine. Configure your client machine to use your (private) nameserver.

    Tip

    On a Linux system this typically requires root privileges to alter the /etc/resolv.conf file.

  2. Supply two virtual host directives enabling http://xy123.mi.hdm-stuttgart.de and http://manual.mi.hdm-stuttgart.de to serve your documents.

    Tip

    Follow the Apache manual's description. With respect to access rights you'll need the usual <Directory "/..."> section. Read about the roles of /etc/apache2/conf-available and /etc/apache2/conf-enabled and the corresponding commands a2enconf and a2disconf.