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
# 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
Post a Comment