Virtual host for Laravel

Virtual host & custom URL

  1. Create virtual host: Go to C:\xampp2\apache\conf\extra\httpd-vhosts.conf add the following code at the bottom of this file:
    <VirtualHost *:80>
    DocumentRoot "C:/xampp2/htdocs/laravel_project_name"
    ServerName dummy.example
    </VirtualHost>
    
  2. Custom url: Go to C:\Windows\System32\drivers\etc\hosts and add the following code at the bottom of the file:
    127.0.0.1       dummy.example

Labels: ,

© copyright-2020 Rejaul