How to set virtual host in xampp

How to set virtual host in xampp.


===============XAMPP Virtual Host==================
C:\xampp\apache\conf\httpd.conf
Enable
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
by removing #
LoadModule vhost_alias_module modules/mod_vhost_alias.so

C:\xampp\apache\conf\extra\httpd-vhosts.conf

	ServerName   yoursite.com
	DocumentRoot "C:\xampp\htdocs\yourfolder"

C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1          yoursite.com
===============XAMPP Virtual Host==================

Restart the xampp , thats it…!!

Share on Facebook



2 thoughts on “How to set virtual host in xampp”