...
Code Block | ||
---|---|---|
| ||
cd /etc/apache2/sites-available/ # must be in this directory for a2ensite to work sudo a2ensite www.krypton.com.conf # enable a virtual host sudo a2ensite www.earth.com.conf # enable a virtual host |
Notice the conf extension to the file. If you do not put that, you will recieve the error "ERROR: Site www.krypton.com does not exist!"
Info |
---|
As an side note, a2ensite is a Ubuntu shortcut command which creates a symbolic link. It is exactly the same things as doing this, cd /etc/apache2/sites-enabled/ |
...