

I have installed xampp on my E:\ directory on windows. Open hosts file under C:\Windows\System32\drivers\etc and add host for test1 and test2 and save hosts file as a administrator.Open nf file under xampp\apache\conf\extra.Steps: Setup multiple virtual hosts on XAMPP Please read my below 2 posts according to your OS. xampp default port is 80 and 443 if you have many project and want to setup project with difference port in xampp called Virtual Hosts this is how to setup virtual host in xampp. If you don’t have xampp on your local machine or you want to install xampp on your machine. Because as a PHP developer, We are usually running multiple projects at a same time. In this tutorial I am going to show you how to setup multiple hosts on xampp. 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 local.wordpress then localhost/wordpress. IP based means that difference IP address of different websites and home based means running multiple names in each IP address. Virtual host can be IP based or name based. Virtual host is one of the best ways to host multiple domains. 3 I am tried to create Multiple Virtual Hosts on my Windows 10, 64-bit, XAMPP 3.2.1 I did the following: 1- C:\Windows\System32\drivers\etc\hosts I have added these line at the bottom of the hosts file: 127.0.0.1 smc 127.0.0.

Line 4: Add Step 3 Enabling a virtual host a2ensiteenables the specified site within the apache2configuration. Start there and you will learn the rest.Share on Facebook Share on Twitter Share on Linkedin Line 2: Add your email for ServerAdminLine 3: Use your domain name for ServerName. I use the Domain Mapping Plugin, that will do the rest, but, that´s another story. This video will include-How to create virtual host on XAMPPHow to make multiple ports in XAMPPHow to handle multiple websites, domains in one ip addressHo. So, once you got those things, you also will need some plugin to install on wordpress. This system allows one server to host multiple domains or sites from a. Same thing for subdomains, you only need to create another virtualhost and another host redirection but for "sub_domain.your_test_domain.local" The basic unit that describes an individual site or domain is called a virtual host. Right? #2 and also, you need to edit the hosts file on windows (guess you are using win), that´s on: Windows\System32\drivers\etc\, and add this line: 127.0.0.1 your_test_domain.local Path to your xampp/lampp installation, e.g.: c:xampp. Make sure you know: Path to your PHP project, e.g.: c:usersusernamesourcemysite. That means, if you surf to "your_site_folder.local" you will see what´s on the "your_site_folder" folder inside xampp htdocs folder. Quick step by step virtual host setup in xampp. Let´s supose you will use a local url like "your_test_domain.local", so: #1 Add virtual servers on your xampp nf (xampp\apache\conf\extra\nf).ĭocumentRoot "C:\xampp\htdocs\your_site_folder" You need two things first of all, and nothing related to wordpress.
