Skip to content

Instantly share code, notes, and snippets.

@iamnnort
Created October 13, 2016 21:13
Show Gist options
  • Save iamnnort/d906c1f8edcaf90b04e5b6ad31ff603a to your computer and use it in GitHub Desktop.
Save iamnnort/d906c1f8edcaf90b04e5b6ad31ff603a to your computer and use it in GitHub Desktop.
1. Open /xampp/apache/conf/extra/httpd-vhosts.conf
2. Add our host:
<VirtualHost *:80>
ServerAdmin admin@mysite.com
DocumentRoot "D:/xampp/htdocs/mysite/public"
ServerName mysite
ServerAlias www.mysite
<Directory "D:/xampp/htdocs/mysite/public">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
3. Open C://Windows/System32/drivers/etc/hosts
4. Add our host name:
127.0.0.1 mysite
127.0.0.1 www.mysite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment