Virtual host<\/strong> is one of the best ways to host multiple domains. Virtual host can be IP based or name based. IP based means that difference IP address of different websites and home based means running multiple names in each IP address.<\/p>\n In local PHP development environment like xampp\/wampp, virtual host is also helpful because it reduces base url problems and it is better to hit In this tutorial I am going to show you how to setup multiple hosts on xampp. Because as a PHP developer, We are usually running multiple projects at a same time.<\/p>\n If you don\u2019t have xampp on your local machine or you want to install xampp on your machine. Please read my below 2 posts according to your OS.<\/p>\n I have installed xampp on my E:\\ directory on windows.<\/span><\/p>\nlocal.wordpress<\/code> then
localhost\/wordpress<\/code>.<\/p>\n
\n
Steps: Setup multiple virtual hosts on XAMPP<\/h2>\n
\n
xampp\\htdocs<\/code> folder. I will create
test1<\/code> and
test2<\/code> folder<\/li>\n
httpd-vhosts.conf<\/code> file under
xampp\\apache\\conf\\extra<\/code><\/li>\n
hosts<\/code> file under
C:\\Windows\\System32\\drivers\\etc<\/code> and add host for test1 and test2 and save hosts file as a administrator.<\/li>\n
\n