apache.snippets 691 B

1234567891011121314151617181920212223242526272829303132333435
  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:webmaster@example.com}
  33. DocumentRoot ${4:/www/example.com}
  34. ServerName ${5:www.example.com}
  35. </VirtualHost>