Skip to content

Commit 9c03bc0

Browse files
committed
Merge pull request scrooloose#19 from eligundry/master
Added new snippets for Apache
2 parents 09f536a + a9d1450 commit 9c03bc0

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

snippets/apache.snippets

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Snippets for code blocks used oftenly in Apache files.
2+
# <Directory>
3+
snippet dir
4+
<Directory ${1:/}>
5+
DirectoryIndex ${2:index.html}
6+
Order Deny,Allow
7+
Deny from All
8+
</Directory>
9+
# <FilesMatch>
10+
snippet filesmatch
11+
<FilesMatch "${1:regex}">
12+
${2}
13+
</FilesMatch>
14+
# <IfModule>
15+
snippet ifmodule
16+
<IfModule ${1:mod_example.c}>
17+
${2}
18+
</IfModule>
19+
# <LimitExcept>
20+
snippet limitexcept
21+
<LimitExcept ${1:POST GET}>
22+
${2}
23+
</LimitExcept>
24+
# <Proxy>
25+
snippet proxy
26+
<Proxy ${1:*}>
27+
${2}
28+
</Proxy>
29+
# <VirtualHost>
30+
snippet virtualhost
31+
<VirtualHost ${1:*}:${2:80}>
32+
ServerAdmin ${3:[email protected]}
33+
DocumentRoot ${4:/www/example.com}
34+
ServerName ${5:www.example.com}
35+
</VirtualHost>

0 commit comments

Comments
 (0)