If you are using XAMPP: Go to XAMPP version folder and open the file C:\xampp72\apache\conf\extra\httpd-vhosts.conf NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin xyz@gmail.com DocumentRoot "DocumentRoot_folder" ServerName xyz.dev.com ErrorLog "logs/xyz.dev.com-error.log" CustomLog "logs/xyz.dev.com-access.log" common </VirtualHost> <VirtualHost *:443> DocumentRoot "DocumentRoot_folder" ServerName xyz.dev.com <Directory DocumentRoot_folder> AllowOverride All Order Deny,Allow Allow from all </Directory> SSLEngine on SSLCertificateFile "conf/ssl.crt/server.crt" SSLCertificateKeyFile "conf/ssl.key/server.key" </VirtualHost> <VirtualHost *:80> ServerAdmin xyz@gmail.com DocumentRoot "DocumentRoot_folder" ServerName localhost ServerAlias localhost ...