Creating a virtual host using 000-default.conf apache2 ubutnu

Written by Deep

Steps to create a virtual host in apache2 using default configuration file. Considering you are using Ubuntu OS. Lets setup example.dev on your apache server.

Step 1.
Switch to directory /etc/apache2/sites-available/.


Step 2:
Append the following code in the file (replace example.dev with your desired domain / hostname )


Step 3:

Enable new configuration and restart apache server


Thats all, you have done 🙂 .

Leave a Comment