Skip to content

Instantly share code, notes, and snippets.

@codegaze
Last active May 8, 2016 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codegaze/5360cb76a878cbd585092d1926c430ce to your computer and use it in GitHub Desktop.
Save codegaze/5360cb76a878cbd585092d1926c430ce to your computer and use it in GitHub Desktop.
Snippet for Sublime Text to add a domain to your vhosts (XAMPP & Laravel presets)
<snippet>
<content><![CDATA[
<VirtualHost ${1:domain_name}:80>
DocumentRoot "C:/xampp/htdocs/${1:domain_name}/public"
ServerName ${1:domain_name}
ErrorLog "logs/${1:domain_name}-error.log"
<Directory "${1:domain_name}">
Options Indexes FollowSymLInks
AllowOverride all
Deny from all
Allow from 127.0.0.0/8
Allow from 192.168.0.0/16
</Directory>
</VirtualHost>
]]></content>
<tabTrigger>vhost</tabTrigger>
<description>Add a vhost</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment