Last active
May 8, 2016 10:51
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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