
- How to use wamp server virtual host mobile how to#
- How to use wamp server virtual host mobile update#
- How to use wamp server virtual host mobile windows#
How to use wamp server virtual host mobile how to#
But here we are going to discover step-by-step how to install WAMPServer 3.1. Note: Change your project's host name and root folder based on your need but don't forget to follow the steps mentioned. After you install WAMPServer, you will use to locate the resources of your. This is because we have not yet created a VirtualHost to serve this address. If so far I access from the browser, Apache will resolve this as if it were localhost. Now since you have enabled the virtual host, you also need to enter the local host details in the nf which is located under folder "C:\wamp\bin\apache\apache2.4.9\conf\extra". The important thing is to use a domain name that doesn’t exist (and can’t exist in the future) in order to avoid collisions. Last but not the least, How to access localhost? Now Restart your wamp server and go to your browser and insert 127.0.0.1 or 127.0.0.2 or your ip that you already map. you can add your own that is not use for public ip and than map your project root directory to DocumentRoot And give a name of your As ServerName.
Watch the complete video guide on YouTube. Here i use 127.0.0.1 and 127.0.0.2 for my own.WampServer supports Apache, PHP, and MySQL, and it runs on Windows. The primary difference is that you get access to a more compact stack. Step 4: Restart all services in WAMP and now you should be able to access the index.php located in your project root directory by typing the v in the browser's address bar. WampServer is relatively similar to MAMP in terms of features. Enter the below lines into it and then save it: 127.0.0.1 v The best way to setup or install WAMP Server on any of the cloud platforms (Azure, AWS, GCP) is to use our marketplace image. open notepad application in administrator mode and open the file "hosts" located in the above mentioned directory.
How to use wamp server virtual host mobile windows#
Step 3: Change the windows host file located at "C:\Windows\System32\drivers\etc". Now this entry will enable the virtual host to redirect to your custome folder which is outside of the wamp installation directory and you can access your web root by typing v in the browser address bar.

So the configuration should be added to the file is: Lets assume that your host name is v and your project root folder is "d:\projects\example\www\". Here you need to add the entry of your custom host accordingly.
How to use wamp server virtual host mobile update#
Step 2: Update the virtual hos configuration file nf which is located under folder "C:\wamp\bin\apache\apache2.4.9\conf\extra". In this step you have actually enabled virtual host feature in WAMP's Apache server. Install WAMP Without this step, you most likely won’t have a hosts file to speak of. So after the change the above two lines will look like: # Virtual hosts Setting up virtual hosts in WAMP on Windows is easier than it sounds. E:wampbinapacheapache2.2.

You need to uncomment it i.e remove the # from the Include command. Open nf file in your wamp server I have nf in following location. Initially the virtual host inclusion is commented. Open the nf file usually located at " C:\wamp\bin\apache\apache2.4.9\conf" and find the below settings: # Virtual hosts Step 1: Enable the Virtual host configuration in Apache's nf file.

Setting up virtual host in WAMP server involves the below steps:
