Virtual host setup in XAMPP for Laravel Project

1. C:\xampp\apache\conf\https.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

2. C:\Windows\System32\drivers\etc\hosts
127.0.0.1       localhost
127.0.0.1       helpdesk.local
127.0.0.1       teledaktar.local


3. C:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/helpdesk/public"
    ServerName helpdesk.local
</VirtualHost>


<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/teledaktar/public"
    ServerName teledaktar.local
</VirtualHost>

Now, 
URL 1 : http://helpdesk.local
URL 2 : http://teledaktar.local

Comments

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Git post receive setup at server for git push to the production from local machine