- Create a user,
public_html
directory for that user and add a index.html file to that directory - Create a
dev
directory underpublic_html
and add another index.html with some confidential information this time. - Place the .htaccess file under
Dev
directory that will ask for password to view the contents of that directory. - Create 3 more directory under
/var/www/html
to host 3 websites with Name Based routing and add a index.html file in each of the directories. - Create 3 vHost files
- site1.conf
- Use
site1.internal
as domain name - Update DocumentRoot
- Add Alias Directive for the user created above
- Use
- site2.conf
- Use
site2.internal
as domain name - Update DocumentRoot
- Use
- site3.conf
- Use
site3.internal
as domain name - Update Document Root
- Use
- Update
/etc/hosts
files for the above three domains