In this article, I'm going to explain about, How to create virtual Hosts for Drupal On Linux Ubuntu. By Using virtual host settings, we can access site as a domain like test.sitename.com instead of access like localhost/sitename. Here are the steps to create a virtual host for Drupal on Linux Ubuntu.

Step 1:

Assume your Drupal codes placed at /var/www/testDrupal

Step 2:

Access your Drupal site by using http://localhost/testDrupal

Step 3:

If you want to access the same site using test.testDrupal.com to solve path issues and wysiywig editor images, and files link issues.