![]() The virtual host needs to point out the same host declared in the hosts file of windows (in this case 127.0.0.2) at the port 80. The entry point of a laravel application is the index.php inside the public folder, so the desired directory for our application will be the absolute path to your project in the public folder as shown in the following example. Please remember you can increase the final number of the host to have multiple of them like 127.0.0.3, 127.0.0.4, etc. ![]() Still you are unable to save the changes of the host file, try to saveAs it in another location like desktop and copy and replace in its previous location C:\Windows\System32\drivers\etc\hosts. # For example: # 102.54.94.97 # source server # 38.25.63.10 x. # x client host # localhost name resolution is handled within DNS itself. # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # The IP address and the host name should be separated by at least one # space. The IP address should # be placed in the first column followed by the corresponding host name. Each # entry should be kept on an individual line. # This file contains the mappings of IP addresses to host names. # Shaik Mubasheer - Gkb labs # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. ![]() Then add the host using a custom host on your system, in this case we will add the 127.0.0.2 host that will be accesible as well with an alias of “v”. Note: Remember to edit the hosts file using an editor with administrator rights, otherwise you won't be able to save the changes. In this case we will access our Laravel project “laravel-gkb” with a domain “http:/v/” so you need to modify the hosts file of Windows located in C:\Windows\System32\drivers\etc\hosts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |