There are following steps to create virtual host Step 1:- Update the host file on window 10. Go to the following path " C:\Windows\System32\drivers\etc ". Open host file then add the below line. 127.0.0.1 local.drupal.com Step 2:- Update the vhosts file in Apache configuration. Go to the following path " C:\xampp\apache\conf\extra ". Open httpd-vhosts.conf file then add below line. <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/drupal/" ServerName local.drupal.com <Directory "C:/xampp/htdocs/drupal/"> </Directory> </VirtualHost> Step 3:- Check one more configuration in the httpd.conf file on the following path "C:\xampp74\apache\conf\httpd.conf". Remove preceding # character from below line in httpd.conf file. Include conf/extra/httpd-vhosts.conf Step 4:- Restart XAMPP.