Skip to content

Instantly share code, notes, and snippets.

@lin
Last active August 29, 2015 14:07
Show Gist options
  • Save lin/350f22cd586f9d0eecb2 to your computer and use it in GitHub Desktop.
Save lin/350f22cd586f9d0eecb2 to your computer and use it in GitHub Desktop.
path:
C:\windows\system32\drivers\etc\hosts
add:
127.0.0.1 popshop.local
path:
C:\xampp\apache\conf\extra\httpd-vhosts.conf
add:
NameVirtualHost *
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:\projects\popshop\popinshop\popshop"
ServerName popshop.local
<Directory "D:\projects\popshop\popinshop\popshop">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order Allow,Deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment