


If the port remains default 80 then the VirtualHost tag should be changed to.If the port remains default 80 then the URL address will be localhost.Have your Laravel project/s on c:\vhost\laravel1,Ĭ:\vhost\laravel2 etc and make c:\vhost\laravel1\public asĭocumentRoot etc as shown before. Note: If you work on Laravel projects you can create unlimited Laravel projects as well as other frameworks like CodeIgniter, Yii, etc., the point is to #this is the second vhost address in XAMPP for project like LaravelĭocumentRoot "C:/vhost/Laravel-Blog/public" #this is the first vhost address in XAMPP
#XAMPP FOR WINDOWS CODE#
Open nf file C:\XAMPP\apache\conf\extra\nf Add the following code in line depending on how many vhost you want to create:.In c:\vhost folder we create a sub-folder domain1 or project1 or any other, it is up to you ( c:\vhost\project1).Create a folder for your projects I have created one in c:\vhost you can call it projects etc.However, if you need to develop many projects then it suggested separating them by the virtual host, as mentioned earlier. Note: By default server documents are located on C:\XAMPP\htdocs or C:\Bitnami\wampstack\apache2\htdocs that’s fine if you have only one project or many small test files. While we have nf file open we need to ensure that nf is included: Or you find the file here C:\XAMPP\apache\conf\nf, C:\XAMPP\apache2\conf\nf, C:\Bitnami\wampstack\apache\conf\nf or C:\Bitnami\wampstack\apache2\conf\nf or similar location. If you keep Apache to default port 80, skip this part and move on to Virtual hostsĬhange XAMPP/WAMP port (only if necessary) if left default, then jump to Setting virtual host.For the next section, we need to use a text editor like notepad or regular IDE.I have chosen to change my Apache to port 8080. OR Change your other software/IIS port and keep Apache to default port 80 in case of Skype, just kill the Skype app and restart it after installing Apache on port 80, and Skype will automatically get a new port.
#XAMPP FOR WINDOWS FREE#
#XAMPP FOR WINDOWS WINDOWS#
* Note: By default, most web servers will use port 80 as the default port, in some situations if you have another web server installed like (Microsoft IIS), it uses port 80 as well OR in other cases, SKYPE does also sometimes use port 80 like it is the case for some in Windows 8/10 for some users, in that case, you can do two thing’s Btw, in my case, I have only installed Apache and MySQL. You are expected to have installed the latest version of XAMPP/WAMP.

Project 2 is a Laravel project with URL laravel.localhost.Project 1 is based on PHP and has the local URL address php.localhost.Introduction: vhost (virtual host) is a great solution if you intend to develop many independent projects in PHP and keep them isolated from each other, like: Note: To start with, the only difference for this guideline, between XAMPP and WAMP or other Apache packages for Windows, is a question about where those packages are installed on your computer. You need to follow some steps to create a virtual host in windows with apache.
