Skip to content

Commit

Permalink
Merge pull request scrooloose#19 from eligundry/master
Browse files Browse the repository at this point in the history
Added new snippets for Apache
  • Loading branch information
MarcWeber committed Aug 7, 2011
2 parents 09f536a + a9d1450 commit 9c03bc0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions snippets/apache.snippets
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>

0 comments on commit 9c03bc0

Please sign in to comment.