- HOW TO USE VIRTUALBOX IN WINDOWS 10 HOW TO
- HOW TO USE VIRTUALBOX IN WINDOWS 10 INSTALL
- HOW TO USE VIRTUALBOX IN WINDOWS 10 CODE
This procedure has to be followed in the folder : Create the index.php file in the folder Thereupon, opens the file with the text editor and copies the following code: Now it is necessary to add the following configuration to the newly created index.php file. Then enter the folder and create a new file called index.php: Creates the index.php file In this case and : Creating folders for virtual sites. Once inside it please create two new folders with the name of the website. First, go to the root of the C drive and create a folder named sites. Well, it is necessary to manually create the folders where the necessary files will be stored so that the sites load correctly. Create folders to host virtual websites.Īs you may remember, in the previous steps we modified Apache to host two virtual sites called and. This modification will allow Apache to be able to host more than one website. Configuration that allows Apache to host more than one module.In the same way that was done with the previous line, it is necessary to delete the numeral sign. Without leaving the file modification, please locate line 187 corresponding to vhost_alias_module modules/mod_vhost_alias.so. Configuration to load the vhost module.īy removing the numeral sign, then the line is used and the extra configuration that has just been modified is downloaded.Look for a line with the text vhost, approximately line number 515. Then select the nf file and open it with the text editor. With this in mind go to the next address: C:\Apache24\conf. Next, we are going to modify the Apache configuration to load the Virtual Host module. Save the file to make the changes effective.
HOW TO USE VIRTUALBOX IN WINDOWS 10 CODE
Thus, we’re going to replace that code with the following lines: ĬustomLog "logs/" commonĬustomLog "logs/" common In addition, we have also enabled port 80, but it is also possible to enable port 443. Please note that you can assign the name of your preference, you just have to modify the file to your liking. In this opportunity, we are going to add two virtual hosts called and. In the shaded area that we saw in the previous image, we can see the information that we have to edit. With this intention, please go to this address C:\Apache24\conf\extra, once there select the nf file and modify it with your favorite text editor: default nf file configuration Next, we are going to edit the virtual host configuration in Apache. After saving the file, reload the browser and the page should look like this: localhost website Edit the nf file This is to work more comfortable and not to confuse with the two virtual sites that we are going to add. With this modification what we will do is change the message of the site to show Default website.
HOW TO USE VIRTUALBOX IN WINDOWS 10 HOW TO
If you want to know how to do it, check our post about PHP in Windows 10. The first thing we need to do is to modify the index.php file located in the next path: C:\Apache24\htdocs. Let’s see how to do it! Edit the index.php file On these hosts, it is also possible to interpret the PHP language. Fortunately, Apache allows the configuration of multiple virtual hosts. Especially for those applications that do not need a dedicated server. This is inconvenient, as it is likely to require more than one website to be mounted on the server. On the negative side, This configuration does not offer enough flexibility of work, as it limits to a single website. However, the configuration applied only allows you to set up a single website through the localhost address.
HOW TO USE VIRTUALBOX IN WINDOWS 10 INSTALL
Enable Virtual Host in ApacheĪs mentioned above, we have learned how to install Apache. In this opportunity, I will show you how to enable Apache Virtual Host in Windows 10. Consequently, we can use all the possibilities offered by this powerful web server. Hello, how are you? In a previous article, we saw how to install Apache in Windows 10.