So how the config files for virtual hosting are setup for Apache on Ubuntu is that you have 2 directories:
- this is the directory that contains the actual virtual hosting config files (we're going to create our own in just a minute).
- inside this directory you will see symbolic links
that point to config files located in the sites-available directory - i.e. if there is a symbolic link in this directory pointing to a config file, then that config file is active
So change directory into the sites-available directory:
and inside you should see 2 files - "default" and "default-ssl". We;'re going to create a new one. So using an editor - we will use "pico" here since it is easier to understand for most new users compared to vi, but by all means use vi if you can
- we're going to create a new file for our domain.
For our testing here I'm going to be using the domain "www.jamroom.net" - you should use your domain instead:
This will drop you into the code editor. You will want to add the following to this file: