How to set virtual host in xampp 2 comments


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




About Pragnesh Karia

Pragnesh Karia, Open Source Enthusiast, Software Professional, Software Developer, Technical Lead ,Magento, Joomla ,Joomla LMS , Moodel LMS ,PHP ,Mysql, Ajax, Javascript, Jquery, Linux, Fan of Open Sources , Annet Technologies , SEO Analyst , Mootools


2 thoughts on “How to set virtual host in xampp