Skip to content

Latest commit

 

History

History
29 lines (27 loc) · 838 Bytes

create-virtual-host-in-xampp.md

File metadata and controls

29 lines (27 loc) · 838 Bytes

How to create a virtual host in xampp

Let's say $xampp = 'xampp_installation_directory'

  1. Open {$xampp}\apache\conf\extra\httpd-vhosts.conf
  2. Add following snippet for a normal project
<VirtualHost *:80>
  DocumentRoot "{$xampp}\htdocs\project_name"
  ServerName project_name.localhost
  <Directory "F:\xampp\htdocs\project_name">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
  </Directory>
</VirtualHost>
  1. Add following snippet for a Laravel project
<VirtualHost *:80>
  DocumentRoot "{$xampp}/htdocs/project_name/public"
  ServerName project_name.localhost
  <Directory "F:\xampp\htdocs\lara8/project_name">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
  </Directory>
</VirtualHost>