forked from scrooloose/snipmate-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request scrooloose#19 from eligundry/master
Added new snippets for Apache
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Snippets for code blocks used oftenly in Apache files. | ||
# <Directory> | ||
snippet dir | ||
<Directory ${1:/}> | ||
DirectoryIndex ${2:index.html} | ||
Order Deny,Allow | ||
Deny from All | ||
</Directory> | ||
# <FilesMatch> | ||
snippet filesmatch | ||
<FilesMatch "${1:regex}"> | ||
${2} | ||
</FilesMatch> | ||
# <IfModule> | ||
snippet ifmodule | ||
<IfModule ${1:mod_example.c}> | ||
${2} | ||
</IfModule> | ||
# <LimitExcept> | ||
snippet limitexcept | ||
<LimitExcept ${1:POST GET}> | ||
${2} | ||
</LimitExcept> | ||
# <Proxy> | ||
snippet proxy | ||
<Proxy ${1:*}> | ||
${2} | ||
</Proxy> | ||
# <VirtualHost> | ||
snippet virtualhost | ||
<VirtualHost ${1:*}:${2:80}> | ||
ServerAdmin ${3:[email protected]} | ||
DocumentRoot ${4:/www/example.com} | ||
ServerName ${5:www.example.com} | ||
</VirtualHost> |